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:[0.00,0.00,0.00,0.00]},{ x:'01/23/2024',y:[0.00,0.00,0.00,0.00]},{ x:'01/24/2024',y:[0.00,0.00,0.00,0.00]},{ x:'01/25/2024',y:[19.72,19.72,19.69,19.69]},{ x:'01/26/2024',y:[0.00,0.00,0.00,0.00]},{ x:'01/29/2024',y:[19.84,19.84,19.84,19.84]},{ x:'01/30/2024',y:[19.95,19.95,19.84,19.84]},{ x:'01/31/2024',y:[19.74,19.74,19.74,19.74]},{ x:'02/01/2024',y:[0.00,0.00,0.00,0.00]},{ x:'02/02/2024',y:[19.71,19.72,19.70,19.70]},{ x:'02/05/2024',y:[0.00,0.00,0.00,0.00]},{ x:'02/15/2024',y:[19.61,19.74,19.61,19.74]},{ x:'02/16/2024',y:[19.93,19.94,19.90,19.93]},{ x:'02/19/2024',y:[19.99,20.06,19.97,20.06]},{ x:'02/20/2024',y:[20.14,20.14,20.14,20.14]},{ x:'02/21/2024',y:[20.14,20.19,20.14,20.18]},{ x:'02/22/2024',y:[20.19,20.32,20.19,20.32]},{ x:'02/23/2024',y:[20.32,20.32,20.32,20.32]},{ x:'02/26/2024',y:[20.37,20.41,20.37,20.41]},{ x:'02/27/2024',y:[20.50,20.50,20.50,20.50]},{ x:'02/29/2024',y:[20.50,20.50,20.50,20.50]},{ x:'03/01/2024',y:[20.61,20.66,20.61,20.66]},{ x:'03/04/2024',y:[20.71,20.85,20.71,20.85]},{ x:'03/05/2024',y:[20.93,20.93,20.93,20.93]},{ x:'03/06/2024',y:[21.00,21.00,21.00,21.00]},{ x:'03/07/2024',y:[20.93,21.00,20.89,21.00]},{ x:'03/08/2024',y:[21.05,21.05,20.87,20.87]},{ x:'03/11/2024',y:[20.93,21.02,20.90,21.02]},{ x:'03/12/2024',y:[21.16,21.30,21.16,21.30]},{ x:'03/13/2024',y:[21.72,21.72,21.65,21.68]},{ x:'03/14/2024',y:[21.52,21.52,21.35,21.35]},{ x:'03/15/2024',y:[21.28,21.28,21.28,21.28]},{ x:'03/18/2024',y:[0.00,0.00,0.00,0.00]},{ x:'03/19/2024',y:[21.60,21.93,21.60,21.93]},{ x:'03/20/2024',y:[22.22,22.30,22.08,22.08]},{ x:'03/21/2024',y:[22.27,22.28,22.26,22.27]},{ x:'03/22/2024',y:[22.31,22.31,22.01,22.01]},{ x:'03/25/2024',y:[22.20,22.20,22.11,22.11]},{ x:'03/26/2024',y:[22.20,22.20,22.20,22.20]},{ x:'03/27/2024',y:[21.94,21.98,21.94,21.98]},{ x:'03/28/2024',y:[22.45,22.70,22.43,22.43]},{ x:'03/29/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/01/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/02/2024',y:[22.40,22.43,22.40,22.43]},{ x:'04/03/2024',y:[22.38,22.38,22.38,22.38]},{ x:'04/08/2024',y:[22.35,22.37,22.35,22.37]},{ x:'04/09/2024',y:[22.57,22.57,22.57,22.57]},{ x:'04/10/2024',y:[22.57,22.57,22.57,22.57]},{ x:'04/11/2024',y:[22.33,22.33,22.33,22.33]},{ x:'04/12/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/15/2024',y:[22.51,22.68,22.51,22.68]},{ x:'04/16/2024',y:[22.60,22.60,22.00,22.00]},{ x:'04/17/2024',y:[22.37,22.37,22.36,22.36]},{ x:'04/18/2024',y:[22.36,22.56,22.36,22.51]},{ x:'04/19/2024',y:[22.19,22.30,22.18,22.30]},{ x:'04/22/2024',y:[22.51,22.60,22.33,22.33]},{ x:'04/23/2024',y:[22.40,22.54,22.40,22.52]},{ x:'04/24/2024',y:[22.72,22.97,22.71,22.97]},{ x:'04/25/2024',y:[22.89,22.89,22.89,22.89]},{ x:'04/26/2024',y:[23.02,23.21,23.02,23.21]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020018 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());