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:'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]},{ x:'04/29/2024',y:[22.68,23.06,22.66,23.06]},{ x:'04/30/2024',y:[23.07,23.15,22.90,22.97]},{ x:'05/02/2024',y:[21.90,22.33,21.90,22.22]},{ x:'05/03/2024',y:[23.14,23.37,22.75,22.76]},{ x:'05/06/2024',y:[23.68,23.88,23.55,23.60]},{ x:'05/07/2024',y:[23.95,24.02,23.66,24.02]},{ x:'05/08/2024',y:[23.93,24.00,23.90,23.96]},{ x:'05/09/2024',y:[23.91,24.06,23.75,23.75]},{ x:'05/10/2024',y:[23.73,23.80,23.34,23.63]},{ x:'05/13/2024',y:[23.88,23.89,23.46,23.47]},{ x:'05/14/2024',y:[23.60,23.95,23.40,23.92]},{ x:'05/15/2024',y:[23.96,24.64,23.96,24.09]},{ x:'05/16/2024',y:[24.92,24.93,24.08,24.10]},{ x:'05/17/2024',y:[24.18,24.41,24.10,24.35]},{ x:'05/20/2024',y:[24.29,24.29,23.68,24.03]},{ x:'05/21/2024',y:[24.14,24.18,23.94,23.95]},{ x:'05/22/2024',y:[24.18,24.75,24.18,24.75]},{ x:'05/23/2024',y:[25.19,25.39,25.08,25.36]},{ x:'05/24/2024',y:[25.07,25.42,25.06,25.39]},{ x:'06/11/2024',y:[25.36,25.41,25.11,25.11]},{ x:'06/12/2024',y:[25.70,26.11,25.68,26.11]},{ x:'06/13/2024',y:[26.74,27.00,26.71,26.96]},{ x:'06/14/2024',y:[27.07,27.54,26.89,27.54]},{ x:'06/17/2024',y:[27.67,28.00,27.59,27.93]},{ x:'06/18/2024',y:[28.27,28.52,28.27,28.47]},{ x:'06/19/2024',y:[29.56,30.73,29.56,30.40]},{ x:'06/20/2024',y:[30.50,31.25,30.50,31.24]},{ x:'06/21/2024',y:[30.32,31.33,30.32,31.16]},{ x:'06/24/2024',y:[30.70,30.70,29.86,29.92]},{ x:'06/25/2024',y:[29.00,30.20,28.70,30.20]},{ x:'06/26/2024',y:[30.62,30.95,30.20,30.60]},{ x:'06/27/2024',y:[29.97,30.43,29.97,30.32]},{ x:'06/28/2024',y:[30.57,30.90,30.45,30.53]},{ x:'07/01/2024',y:[30.54,30.95,30.54,30.69]},{ x:'07/02/2024',y:[30.69,30.76,29.82,29.95]},{ x:'07/03/2024',y:[30.51,30.61,30.07,30.10]},{ x:'07/04/2024',y:[31.26,31.60,31.22,31.57]},{ x:'07/05/2024',y:[31.88,31.93,31.73,31.80]},{ x:'07/12/2024',y:[34.55,34.84,33.73,33.94]},{ x:'07/15/2024',y:[35.00,35.00,33.73,33.88]},{ x:'07/16/2024',y:[34.15,34.86,34.01,34.35]} ] }], 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());