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/27/2023',y:[20.27,20.28,20.21,20.21]},{ x:'11/28/2023',y:[20.24,20.24,20.22,20.22]},{ x:'11/29/2023',y:[20.30,20.30,20.27,20.27]},{ x:'11/30/2023',y:[20.35,20.44,20.35,20.44]},{ x:'12/01/2023',y:[20.87,20.95,20.87,20.94]},{ x:'12/04/2023',y:[21.26,21.26,21.23,21.25]},{ x:'12/05/2023',y:[21.17,21.19,21.16,21.17]},{ x:'12/06/2023',y:[21.20,21.27,21.20,21.26]},{ x:'12/07/2023',y:[21.07,21.09,21.04,21.06]},{ x:'12/08/2023',y:[21.10,21.13,21.07,21.12]},{ x:'12/11/2023',y:[21.26,21.31,21.26,21.28]},{ x:'12/12/2023',y:[21.46,21.50,21.45,21.49]},{ x:'12/18/2023',y:[22.45,22.49,22.44,22.49]},{ x:'12/19/2023',y:[22.42,22.42,22.37,22.40]},{ x:'01/10/2024',y:[22.36,22.37,22.34,22.34]},{ x:'01/11/2024',y:[22.63,22.69,22.63,22.69]},{ x:'01/12/2024',y:[22.58,22.59,22.55,22.58]},{ x:'01/15/2024',y:[22.45,22.55,22.41,22.53]},{ x:'01/16/2024',y:[22.42,22.43,22.36,22.41]},{ x:'01/17/2024',y:[22.30,22.30,22.23,22.24]},{ x:'01/18/2024',y:[22.23,22.23,22.20,22.22]},{ x:'01/19/2024',y:[22.35,22.41,22.35,22.41]},{ x:'01/22/2024',y:[22.96,22.97,22.90,22.90]},{ x:'01/23/2024',y:[22.98,23.01,22.97,23.01]},{ x:'01/24/2024',y:[22.95,22.95,22.87,22.90]},{ x:'01/25/2024',y:[22.84,22.84,22.78,22.82]},{ x:'01/26/2024',y:[22.90,22.92,22.83,22.87]},{ x:'01/29/2024',y:[22.97,22.99,22.96,22.99]},{ x:'01/30/2024',y:[23.24,23.26,23.22,23.25]},{ x:'01/31/2024',y:[23.43,23.51,23.43,23.51]},{ x:'02/01/2024',y:[23.13,23.18,23.09,23.16]},{ x:'02/02/2024',y:[23.49,23.50,23.46,23.50]},{ x:'02/05/2024',y:[23.59,23.62,23.57,23.60]},{ x:'02/15/2024',y:[23.60,23.60,23.32,23.41]},{ x:'02/16/2024',y:[23.71,23.76,23.71,23.75]},{ x:'02/19/2024',y:[23.67,23.67,23.60,23.64]},{ x:'02/20/2024',y:[23.58,23.58,23.50,23.53]},{ x:'02/21/2024',y:[23.53,23.55,23.52,23.53]},{ x:'02/22/2024',y:[23.70,23.73,23.68,23.73]},{ x:'02/23/2024',y:[24.16,24.29,24.16,24.29]},{ x:'02/26/2024',y:[24.21,24.25,24.21,24.25]},{ x:'02/27/2024',y:[24.17,24.22,24.16,24.19]},{ x:'02/29/2024',y:[24.02,24.12,24.02,24.10]},{ x:'03/01/2024',y:[24.13,24.19,24.13,24.17]},{ x:'03/04/2024',y:[24.19,24.19,24.15,24.16]},{ x:'03/05/2024',y:[24.01,24.04,24.00,24.00]},{ x:'03/06/2024',y:[23.58,23.60,23.57,23.57]},{ x:'03/07/2024',y:[23.57,23.67,23.57,23.67]},{ x:'03/08/2024',y:[23.74,23.79,23.73,23.79]},{ x:'03/11/2024',y:[23.70,23.71,23.62,23.64]},{ x:'03/12/2024',y:[23.78,23.83,23.78,23.83]},{ x:'03/13/2024',y:[23.99,24.05,23.99,24.05]},{ x:'03/14/2024',y:[24.10,24.16,24.10,24.15]},{ x:'03/15/2024',y:[23.92,23.95,23.90,23.93]},{ x:'03/18/2024',y:[23.69,23.76,23.69,23.75]},{ x:'03/19/2024',y:[23.81,23.85,23.79,23.85]},{ x:'03/20/2024',y:[24.23,24.27,24.23,24.27]},{ x:'03/21/2024',y:[24.86,24.96,24.86,24.96]},{ x:'03/22/2024',y:[25.17,25.23,25.17,25.20]},{ x:'03/25/2024',y:[24.75,24.75,24.63,24.66]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00852l 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());