function getChartColorsArray(e) { if (null !== document.getElementById(e)) { e = document.getElementById(e).getAttribute("data-colors"); if (e) return (e = JSON.parse(e)).map(function(e) { var t = e.replace(" ", ""); return -1 === t.indexOf(",") ? getComputedStyle(document.documentElement).getPropertyValue(t) || t : 2 == (e = e.split(",")).length ? "rgba(" + getComputedStyle(document.documentElement).getPropertyValue(e[0]) + "," + e[1] + ")" : t }) } } var chartCandlestickBasicColors = getChartColorsArray("basic_candlestick"), chartCandlestickComboColors = (chartCandlestickBasicColors && (options = { series: [{ data: [ { x:'09/15/2022',y:[42.42,42.46,42.42,42.46]},{ x:'09/16/2022',y:[42.45,42.45,42.43,42.45]},{ x:'09/19/2022',y:[42.54,42.58,42.38,42.58]},{ x:'09/20/2022',y:[42.58,42.58,42.58,42.58]},{ x:'09/21/2022',y:[42.37,42.40,42.37,42.40]},{ x:'09/22/2022',y:[42.34,42.34,42.34,42.34]},{ x:'09/23/2022',y:[42.75,42.75,42.75,42.75]},{ x:'09/26/2022',y:[42.75,42.75,42.70,42.70]},{ x:'09/27/2022',y:[42.60,42.62,42.34,42.34]},{ x:'09/28/2022',y:[42.21,42.21,42.21,42.21]},{ x:'09/29/2022',y:[42.34,42.34,42.34,42.34]},{ x:'09/30/2022',y:[42.72,42.78,42.72,42.78]},{ x:'10/03/2022',y:[42.66,42.66,42.66,42.66]},{ x:'10/04/2022',y:[42.85,42.85,42.85,42.85]},{ x:'10/05/2022',y:[42.85,42.85,42.85,42.85]},{ x:'10/06/2022',y:[42.85,42.85,42.83,42.83]},{ x:'10/07/2022',y:[42.59,42.59,42.19,42.19]},{ x:'10/11/2022',y:[42.12,42.50,42.11,42.50]},{ x:'10/12/2022',y:[42.40,42.63,42.40,42.63]},{ x:'10/13/2022',y:[42.63,42.63,42.63,42.63]},{ x:'10/14/2022',y:[42.63,42.63,42.63,42.63]},{ x:'10/17/2022',y:[42.49,42.52,42.45,42.45]},{ x:'10/18/2022',y:[42.50,42.53,42.34,42.53]},{ x:'10/19/2022',y:[42.35,42.35,42.29,42.29]},{ x:'10/20/2022',y:[42.29,42.31,42.28,42.28]},{ x:'10/21/2022',y:[42.32,42.32,42.32,42.32]},{ x:'10/24/2022',y:[42.35,42.35,42.35,42.35]},{ x:'10/25/2022',y:[42.26,42.28,42.26,42.28]},{ x:'10/26/2022',y:[42.31,42.31,42.31,42.31]},{ x:'10/27/2022',y:[42.11,42.43,42.11,42.36]},{ x:'10/28/2022',y:[42.37,42.37,42.37,42.37]},{ x:'10/31/2022',y:[42.26,42.26,42.26,42.26]},{ x:'11/01/2022',y:[42.19,42.19,42.19,42.19]},{ x:'11/02/2022',y:[42.20,42.20,42.20,42.20]},{ x:'11/03/2022',y:[42.11,42.11,42.10,42.10]},{ x:'11/04/2022',y:[42.10,42.25,42.10,42.25]},{ x:'11/07/2022',y:[42.50,42.50,42.50,42.50]},{ x:'11/08/2022',y:[42.27,42.27,42.27,42.27]},{ x:'11/09/2022',y:[42.09,42.09,42.09,42.09]},{ x:'11/10/2022',y:[41.90,41.90,41.90,41.90]},{ x:'11/11/2022',y:[42.22,42.22,41.69,41.74]},{ x:'11/14/2022',y:[41.96,42.15,41.91,41.91]},{ x:'11/15/2022',y:[42.20,42.20,42.20,42.20]},{ x:'11/16/2022',y:[42.12,42.12,42.12,42.12]},{ x:'11/17/2022',y:[41.81,41.81,41.81,41.81]},{ x:'11/18/2022',y:[41.72,41.72,41.72,41.72]},{ x:'11/21/2022',y:[41.67,41.67,41.64,41.64]},{ x:'11/22/2022',y:[41.59,41.59,41.59,41.59]},{ x:'11/23/2022',y:[41.64,41.64,41.62,41.62]},{ x:'11/24/2022',y:[41.52,41.52,41.52,41.52]},{ x:'11/25/2022',y:[41.17,41.17,41.17,41.17]},{ x:'11/28/2022',y:[41.03,41.04,41.03,41.04]},{ x:'11/29/2022',y:[41.20,41.20,41.20,41.20]},{ x:'11/30/2022',y:[41.32,41.32,41.32,41.32]},{ x:'12/01/2022',y:[41.35,41.45,41.35,41.45]},{ x:'12/02/2022',y:[41.45,41.45,41.45,41.45]},{ x:'12/05/2022',y:[41.89,41.89,41.87,41.87]},{ x:'12/06/2022',y:[41.95,41.95,41.91,41.91]},{ x:'12/07/2022',y:[42.02,42.02,41.98,41.98]},{ x:'12/08/2022',y:[42.04,42.04,42.04,42.04]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00745b Daily 股市資訊", align: "left", style: { fontWeight: 500 } }, xaxis: { labels: { format: 'dd/MM', } }, yaxis: { tooltip: { enabled: !0 } } }, (chart = new ApexCharts(document.querySelector("#basic_candlestick"), options)).render()), (chart = new ApexCharts(document.querySelector("#1"), options)).render());