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:[18.86,19.24,18.85,18.99]},{ x:'01/23/2024',y:[19.20,19.20,18.89,19.00]},{ x:'01/24/2024',y:[19.08,19.08,18.75,18.75]},{ x:'01/25/2024',y:[19.11,19.15,18.90,18.96]},{ x:'01/26/2024',y:[18.83,18.83,18.50,18.50]},{ x:'01/29/2024',y:[18.59,19.01,18.59,18.91]},{ x:'01/30/2024',y:[19.19,19.19,18.99,19.01]},{ x:'01/31/2024',y:[18.74,18.75,18.51,18.63]},{ x:'02/01/2024',y:[18.51,18.58,18.20,18.24]},{ x:'02/02/2024',y:[18.62,18.71,18.62,18.63]},{ x:'02/05/2024',y:[18.52,18.78,18.52,18.78]},{ x:'02/15/2024',y:[20.00,20.00,19.48,19.75]},{ x:'02/16/2024',y:[19.45,19.60,19.05,19.06]},{ x:'02/19/2024',y:[19.07,19.31,18.96,19.01]},{ x:'02/20/2024',y:[19.00,19.25,19.00,19.25]},{ x:'02/21/2024',y:[18.80,18.96,18.80,18.89]},{ x:'02/22/2024',y:[19.43,19.43,19.24,19.38]},{ x:'02/23/2024',y:[19.76,19.76,19.36,19.36]},{ x:'02/26/2024',y:[19.43,19.60,19.43,19.60]},{ x:'02/27/2024',y:[19.36,19.36,18.60,18.88]},{ x:'02/29/2024',y:[18.79,18.93,18.67,18.90]},{ x:'03/01/2024',y:[19.11,19.28,19.07,19.14]},{ x:'03/04/2024',y:[20.41,20.41,19.48,19.68]},{ x:'03/05/2024',y:[19.81,20.02,19.73,19.94]},{ x:'03/06/2024',y:[19.80,20.15,19.80,20.10]},{ x:'03/07/2024',y:[20.58,20.65,20.19,20.60]},{ x:'03/08/2024',y:[21.24,21.42,20.54,20.70]},{ x:'03/11/2024',y:[20.64,20.90,20.64,20.87]},{ x:'03/12/2024',y:[21.15,21.89,21.15,21.89]},{ x:'03/13/2024',y:[22.25,22.25,21.75,21.85]},{ x:'03/14/2024',y:[21.17,21.31,21.17,21.24]},{ x:'03/15/2024',y:[21.30,22.12,21.30,22.05]},{ x:'03/18/2024',y:[22.49,22.49,22.19,22.19]},{ x:'03/19/2024',y:[22.77,23.03,22.77,23.03]},{ x:'03/20/2024',y:[23.28,23.35,22.84,22.99]},{ x:'03/21/2024',y:[23.72,24.09,23.69,24.05]},{ x:'03/22/2024',y:[24.15,24.44,23.84,24.27]},{ x:'03/25/2024',y:[24.32,24.32,23.76,23.91]},{ x:'03/26/2024',y:[24.03,24.39,22.87,23.43]},{ x:'03/27/2024',y:[23.58,23.60,23.18,23.58]},{ x:'03/28/2024',y:[23.88,24.63,23.66,24.60]},{ x:'03/29/2024',y:[24.47,25.20,24.37,25.09]},{ x:'04/01/2024',y:[25.23,25.23,24.29,24.30]},{ x:'04/02/2024',y:[25.05,25.68,25.04,25.68]},{ x:'04/03/2024',y:[25.04,25.36,24.93,25.18]},{ x:'04/08/2024',y:[25.47,25.55,25.14,25.20]},{ x:'04/09/2024',y:[25.36,25.54,24.88,25.31]},{ x:'04/10/2024',y:[25.40,25.40,24.85,24.85]},{ x:'04/11/2024',y:[24.51,24.66,24.17,24.48]},{ x:'04/12/2024',y:[24.99,25.09,24.55,24.55]},{ x:'04/15/2024',y:[23.87,23.87,23.12,23.27]},{ x:'04/16/2024',y:[22.11,22.18,21.31,21.60]},{ x:'04/17/2024',y:[21.90,22.30,21.59,22.25]},{ x:'04/18/2024',y:[21.79,22.26,21.79,22.26]},{ x:'04/19/2024',y:[21.71,21.71,19.98,20.64]},{ x:'04/22/2024',y:[20.26,20.71,19.92,20.25]},{ x:'04/23/2024',y:[20.81,20.86,20.25,20.57]},{ x:'04/24/2024',y:[21.49,22.54,21.49,22.52]},{ x:'04/25/2024',y:[22.06,22.18,21.76,21.76]},{ x:'04/26/2024',y:[22.49,22.57,22.15,22.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "02001l 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());