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:'01/22/2024',y:[20.34,20.40,20.24,20.24]},{ x:'01/23/2024',y:[20.22,20.23,19.94,20.23]},{ x:'01/24/2024',y:[20.23,20.43,20.00,20.08]},{ x:'01/25/2024',y:[20.41,20.81,20.41,20.81]},{ x:'01/26/2024',y:[20.90,20.90,20.63,20.69]},{ x:'01/29/2024',y:[20.77,20.88,20.63,20.63]},{ x:'01/30/2024',y:[20.63,20.63,20.23,20.27]},{ x:'01/31/2024',y:[20.14,20.15,19.92,20.08]},{ x:'02/01/2024',y:[20.08,20.29,19.94,20.15]},{ x:'02/02/2024',y:[20.13,20.13,19.71,19.75]},{ x:'02/05/2024',y:[19.74,20.00,19.43,19.95]},{ x:'02/15/2024',y:[20.30,20.78,20.30,20.72]},{ x:'02/16/2024',y:[20.84,21.09,20.84,21.09]},{ x:'02/19/2024',y:[21.10,21.37,20.95,21.00]},{ x:'02/20/2024',y:[21.02,21.18,21.02,21.12]},{ x:'02/21/2024',y:[21.21,21.89,21.21,21.88]},{ x:'02/22/2024',y:[21.68,21.82,21.65,21.82]},{ x:'02/23/2024',y:[21.85,21.96,21.80,21.81]},{ x:'02/26/2024',y:[21.90,21.90,21.61,21.71]},{ x:'02/27/2024',y:[21.51,21.71,21.51,21.71]},{ x:'02/29/2024',y:[21.71,21.95,21.63,21.80]},{ x:'03/01/2024',y:[21.85,22.00,21.85,21.94]},{ x:'03/04/2024',y:[22.04,22.06,21.94,21.98]},{ x:'03/05/2024',y:[21.90,22.17,21.90,22.11]},{ x:'03/06/2024',y:[22.11,22.25,22.05,22.10]},{ x:'03/07/2024',y:[22.10,22.11,21.92,21.92]},{ x:'03/08/2024',y:[21.98,21.98,21.78,21.86]},{ x:'03/11/2024',y:[21.85,22.24,21.85,22.11]},{ x:'03/12/2024',y:[22.25,22.38,22.25,22.35]},{ x:'03/13/2024',y:[22.31,22.42,22.15,22.23]},{ x:'03/14/2024',y:[22.20,22.20,22.18,22.18]},{ x:'03/15/2024',y:[22.16,22.16,22.03,22.10]},{ x:'03/18/2024',y:[22.63,22.63,22.31,22.35]},{ x:'03/19/2024',y:[22.40,22.52,22.40,22.44]},{ x:'03/20/2024',y:[22.40,22.50,22.35,22.50]},{ x:'03/21/2024',y:[22.51,22.51,22.38,22.41]},{ x:'03/22/2024',y:[22.41,22.45,22.06,22.07]},{ x:'03/25/2024',y:[22.08,22.34,22.08,22.32]},{ x:'03/26/2024',y:[22.20,22.20,22.07,22.10]},{ x:'03/27/2024',y:[22.13,22.14,22.10,22.12]},{ x:'03/28/2024',y:[22.05,22.32,21.93,22.25]},{ x:'03/29/2024',y:[22.13,22.13,22.09,22.09]},{ x:'04/01/2024',y:[22.20,22.63,22.20,22.57]},{ x:'04/02/2024',y:[22.57,22.60,22.48,22.49]},{ x:'04/03/2024',y:[22.58,22.58,22.40,22.40]},{ x:'04/08/2024',y:[22.40,22.40,22.27,22.35]},{ x:'04/09/2024',y:[22.32,22.32,22.12,22.16]},{ x:'04/10/2024',y:[22.20,22.20,22.04,22.05]},{ x:'04/11/2024',y:[22.00,22.18,21.93,22.18]},{ x:'04/12/2024',y:[22.00,22.14,22.00,22.09]},{ x:'04/15/2024',y:[21.93,22.47,21.88,22.47]},{ x:'04/16/2024',y:[22.47,22.47,22.24,22.47]},{ x:'04/17/2024',y:[22.34,22.40,22.14,22.40]},{ x:'04/18/2024',y:[22.51,22.76,22.51,22.71]},{ x:'04/19/2024',y:[22.25,22.65,22.25,22.50]},{ x:'04/22/2024',y:[22.48,22.63,22.48,22.51]},{ x:'04/23/2024',y:[22.51,22.51,22.31,22.35]},{ x:'04/24/2024',y:[22.27,22.31,22.23,22.30]},{ x:'04/25/2024',y:[22.33,22.53,22.33,22.43]},{ x:'04/26/2024',y:[22.43,22.72,22.43,22.72]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006207 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());