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/28/2024',y:[22.68,23.12,22.36,22.98]},{ x:'03/29/2024',y:[22.77,23.06,22.74,22.78]},{ x:'04/01/2024',y:[22.95,23.74,22.95,23.50]},{ x:'04/02/2024',y:[23.33,23.64,23.23,23.32]},{ x:'04/03/2024',y:[23.38,23.38,23.00,23.25]},{ x:'04/08/2024',y:[23.24,23.24,22.66,22.92]},{ x:'04/09/2024',y:[22.82,22.97,22.55,22.55]},{ x:'04/10/2024',y:[22.69,22.74,22.42,22.51]},{ x:'04/11/2024',y:[22.26,22.46,22.08,22.46]},{ x:'04/12/2024',y:[22.31,22.55,22.17,22.21]},{ x:'04/15/2024',y:[21.89,23.10,21.75,23.10]},{ x:'04/16/2024',y:[22.96,23.17,22.64,23.12]},{ x:'04/17/2024',y:[22.97,23.05,22.62,22.95]},{ x:'04/18/2024',y:[23.18,23.87,23.08,23.51]},{ x:'04/19/2024',y:[23.36,23.48,22.88,23.08]},{ x:'04/22/2024',y:[23.14,23.56,23.10,23.19]},{ x:'04/23/2024',y:[23.23,23.32,22.85,23.14]},{ x:'04/24/2024',y:[23.24,23.53,23.00,23.13]},{ x:'04/25/2024',y:[23.20,23.53,23.04,23.36]},{ x:'04/26/2024',y:[23.41,24.10,23.41,24.10]},{ x:'04/29/2024',y:[24.09,24.88,23.88,24.58]},{ x:'04/30/2024',y:[24.45,24.80,24.40,24.42]},{ x:'05/02/2024',y:[24.28,24.79,24.13,24.79]},{ x:'05/03/2024',y:[25.06,25.19,24.87,24.99]},{ x:'05/06/2024',y:[25.19,25.36,24.83,24.85]},{ x:'05/07/2024',y:[24.91,25.10,24.78,25.10]},{ x:'05/08/2024',y:[25.04,25.10,24.73,24.83]},{ x:'05/09/2024',y:[24.80,25.05,24.75,24.85]},{ x:'05/10/2024',y:[25.10,25.21,24.65,25.05]},{ x:'05/13/2024',y:[24.76,24.85,24.36,24.81]},{ x:'05/14/2024',y:[24.77,24.80,24.40,24.45]},{ x:'05/15/2024',y:[24.45,24.65,24.25,24.36]},{ x:'05/16/2024',y:[24.30,24.76,24.11,24.67]},{ x:'05/17/2024',y:[24.65,24.91,24.53,24.60]},{ x:'05/20/2024',y:[25.56,25.76,25.31,25.47]},{ x:'05/21/2024',y:[25.36,25.40,25.13,25.36]},{ x:'05/22/2024',y:[25.30,25.46,25.12,25.40]},{ x:'05/23/2024',y:[25.20,25.21,24.80,24.83]},{ x:'05/24/2024',y:[24.51,24.90,24.40,24.40]},{ x:'06/11/2024',y:[23.61,23.67,22.86,22.93]},{ x:'06/12/2024',y:[22.94,23.14,22.87,22.95]},{ x:'06/13/2024',y:[23.00,23.16,22.83,22.83]},{ x:'06/14/2024',y:[22.78,22.92,22.45,22.92]},{ x:'06/17/2024',y:[23.05,23.13,22.78,22.95]},{ x:'06/18/2024',y:[23.09,23.19,22.92,23.01]},{ x:'06/19/2024',y:[23.07,23.22,22.89,23.06]},{ x:'06/20/2024',y:[23.11,23.26,22.90,22.93]},{ x:'06/21/2024',y:[22.82,23.00,22.29,22.48]},{ x:'06/24/2024',y:[22.45,22.95,22.15,22.85]},{ x:'06/25/2024',y:[22.82,22.88,22.63,22.80]},{ x:'06/26/2024',y:[22.57,22.67,22.42,22.42]},{ x:'06/27/2024',y:[22.57,22.64,22.21,22.43]},{ x:'06/28/2024',y:[22.38,22.75,22.33,22.64]},{ x:'07/01/2024',y:[22.42,22.52,22.14,22.40]},{ x:'07/02/2024',y:[22.42,23.06,22.40,23.00]},{ x:'07/03/2024',y:[22.97,23.10,22.77,22.92]},{ x:'07/04/2024',y:[23.03,23.29,22.84,22.84]},{ x:'07/05/2024',y:[22.81,22.96,21.94,22.05]},{ x:'07/12/2024',y:[22.96,23.16,22.90,23.13]},{ x:'07/15/2024',y:[23.13,23.37,23.00,23.26]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00655l 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());