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:[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]},{ x:'03/26/2024',y:[24.57,24.59,24.54,24.59]},{ x:'03/27/2024',y:[24.66,24.75,24.65,24.75]},{ x:'03/28/2024',y:[25.11,25.13,25.08,25.10]},{ x:'03/29/2024',y:[24.99,25.17,24.99,25.11]},{ x:'04/01/2024',y:[25.30,25.35,25.30,25.35]},{ x:'04/02/2024',y:[24.68,24.71,24.65,24.68]},{ x:'04/03/2024',y:[24.28,24.32,24.28,24.30]},{ x:'04/08/2024',y:[24.09,24.09,24.01,24.05]},{ x:'04/09/2024',y:[24.05,24.06,24.02,24.06]},{ x:'04/10/2024',y:[24.06,24.06,23.98,24.02]},{ x:'04/11/2024',y:[23.39,23.53,23.39,23.53]},{ x:'04/12/2024',y:[23.56,23.59,23.54,23.57]},{ x:'04/15/2024',y:[23.04,23.15,22.99,23.14]},{ x:'04/16/2024',y:[22.69,22.70,22.57,22.68]},{ x:'04/17/2024',y:[22.84,22.89,22.82,22.88]},{ x:'04/18/2024',y:[22.74,22.76,22.70,22.76]},{ x:'04/19/2024',y:[22.53,22.53,22.11,22.41]},{ x:'04/22/2024',y:[23.05,23.12,23.03,23.11]},{ x:'04/23/2024',y:[23.37,23.37,23.30,23.33]},{ x:'04/24/2024',y:[23.63,23.69,23.62,23.69]},{ x:'04/25/2024',y:[23.45,23.49,23.42,23.43]},{ x:'04/26/2024',y:[23.54,23.55,23.12,23.17]} ] }], 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());