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:'11/21/2022',y:[32.66,32.66,32.53,32.53]},{ x:'11/22/2022',y:[32.57,32.67,32.57,32.62]},{ x:'11/23/2022',y:[32.71,32.92,32.71,32.92]},{ x:'11/24/2022',y:[32.88,33.17,32.83,33.17]},{ x:'11/25/2022',y:[33.15,33.19,33.12,33.12]},{ x:'11/28/2022',y:[33.05,33.14,33.05,33.12]},{ x:'11/29/2022',y:[33.07,33.10,33.02,33.03]},{ x:'11/30/2022',y:[33.09,33.11,33.04,33.07]},{ x:'12/01/2022',y:[33.10,33.20,33.09,33.13]},{ x:'12/02/2022',y:[33.26,33.45,33.26,33.45]},{ x:'12/05/2022',y:[33.45,33.45,33.37,33.41]},{ x:'12/06/2022',y:[33.31,33.41,33.31,33.40]},{ x:'12/07/2022',y:[33.44,33.47,33.44,33.45]},{ x:'12/08/2022',y:[33.52,33.64,33.52,33.62]},{ x:'12/09/2022',y:[33.65,33.76,33.65,33.73]},{ x:'12/12/2022',y:[33.67,33.77,33.67,33.77]},{ x:'12/13/2022',y:[33.67,33.72,33.67,33.70]},{ x:'12/14/2022',y:[33.65,33.80,33.65,33.68]},{ x:'12/15/2022',y:[33.82,33.86,33.80,33.85]},{ x:'12/16/2022',y:[33.89,34.05,33.89,34.03]},{ x:'12/19/2022',y:[33.96,33.99,33.92,33.98]},{ x:'12/20/2022',y:[33.83,33.90,33.64,33.70]},{ x:'12/21/2022',y:[33.53,33.61,33.46,33.53]},{ x:'12/22/2022',y:[33.60,33.72,33.60,33.70]},{ x:'12/23/2022',y:[33.78,33.80,33.78,33.79]},{ x:'12/26/2022',y:[33.56,33.61,33.51,33.51]},{ x:'12/27/2022',y:[33.53,33.53,33.50,33.51]},{ x:'12/28/2022',y:[33.33,33.42,33.33,33.40]},{ x:'12/29/2022',y:[33.38,33.43,33.34,33.43]},{ x:'12/30/2022',y:[33.40,33.41,33.30,33.39]},{ x:'01/03/2023',y:[33.39,33.40,33.38,33.39]},{ x:'01/04/2023',y:[33.39,33.45,33.39,33.43]},{ x:'01/05/2023',y:[33.41,33.47,33.39,33.45]},{ x:'01/06/2023',y:[33.41,33.43,33.40,33.40]},{ x:'01/09/2023',y:[33.41,33.42,33.31,33.39]},{ x:'01/10/2023',y:[33.46,33.47,33.44,33.46]},{ x:'01/11/2023',y:[33.39,33.39,33.32,33.35]},{ x:'01/12/2023',y:[33.45,33.53,33.45,33.53]},{ x:'01/13/2023',y:[33.59,33.72,33.59,33.72]},{ x:'01/16/2023',y:[33.76,33.76,33.65,33.66]},{ x:'01/17/2023',y:[33.57,33.84,33.57,33.81]},{ x:'01/30/2023',y:[33.79,33.79,33.05,33.15]},{ x:'01/31/2023',y:[33.21,33.21,33.15,33.19]},{ x:'02/01/2023',y:[33.24,33.27,33.23,33.26]},{ x:'02/02/2023',y:[33.26,33.26,33.12,33.22]},{ x:'02/03/2023',y:[33.51,33.52,33.44,33.46]},{ x:'02/06/2023',y:[33.42,33.45,33.40,33.41]},{ x:'02/07/2023',y:[33.31,33.34,33.28,33.33]},{ x:'02/08/2023',y:[33.18,33.28,33.16,33.27]},{ x:'02/09/2023',y:[33.31,33.32,33.23,33.24]},{ x:'02/10/2023',y:[33.10,33.19,33.10,33.19]},{ x:'02/13/2023',y:[32.95,33.05,32.95,33.04]},{ x:'02/14/2023',y:[33.05,33.05,32.98,33.02]},{ x:'02/15/2023',y:[33.13,33.17,33.12,33.17]},{ x:'02/16/2023',y:[33.05,33.07,32.96,32.99]},{ x:'02/17/2023',y:[32.80,32.94,32.80,32.93]},{ x:'02/20/2023',y:[32.98,32.98,32.90,32.92]},{ x:'02/21/2023',y:[32.93,32.96,32.91,32.95]},{ x:'02/22/2023',y:[32.77,32.88,32.77,32.87]},{ x:'02/23/2023',y:[32.79,32.79,32.60,32.61]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00726b 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());