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/19/2024',y:[22.40,22.52,22.40,22.44]},{ x:'03/20/2024',y:[22.40,22.50,22.35,22.50]},{ x:'03/21/2024',y:[22.51,22.51,22.38,22.41]},{ x:'03/22/2024',y:[22.41,22.45,22.06,22.07]},{ x:'03/25/2024',y:[22.08,22.34,22.08,22.32]},{ x:'03/26/2024',y:[22.20,22.20,22.07,22.10]},{ x:'03/27/2024',y:[22.13,22.14,22.10,22.12]},{ x:'03/28/2024',y:[22.05,22.32,21.93,22.25]},{ x:'03/29/2024',y:[22.13,22.13,22.09,22.09]},{ x:'04/01/2024',y:[22.20,22.63,22.20,22.57]},{ x:'04/02/2024',y:[22.57,22.60,22.48,22.49]},{ x:'04/03/2024',y:[22.58,22.58,22.40,22.40]},{ x:'04/08/2024',y:[22.40,22.40,22.27,22.35]},{ x:'04/09/2024',y:[22.32,22.32,22.12,22.16]},{ x:'04/10/2024',y:[22.20,22.20,22.04,22.05]},{ x:'04/11/2024',y:[22.00,22.18,21.93,22.18]},{ x:'04/12/2024',y:[22.00,22.14,22.00,22.09]},{ x:'04/15/2024',y:[21.93,22.47,21.88,22.47]},{ x:'04/16/2024',y:[22.47,22.47,22.24,22.47]},{ x:'04/17/2024',y:[22.34,22.40,22.14,22.40]},{ x:'04/18/2024',y:[22.51,22.76,22.51,22.71]},{ x:'04/19/2024',y:[22.25,22.65,22.25,22.50]},{ x:'04/22/2024',y:[22.48,22.63,22.48,22.51]},{ x:'04/23/2024',y:[22.51,22.51,22.31,22.35]},{ x:'04/24/2024',y:[22.27,22.31,22.23,22.30]},{ x:'04/25/2024',y:[22.33,22.53,22.33,22.43]},{ x:'04/26/2024',y:[22.43,22.72,22.43,22.72]},{ x:'04/29/2024',y:[23.19,23.28,22.82,23.20]},{ x:'04/30/2024',y:[23.20,23.21,23.06,23.08]},{ x:'05/02/2024',y:[23.08,23.24,22.96,23.24]},{ x:'05/03/2024',y:[23.30,23.35,23.28,23.32]},{ x:'05/06/2024',y:[23.42,23.42,23.26,23.28]},{ x:'05/07/2024',y:[23.23,23.35,23.23,23.33]},{ x:'05/08/2024',y:[23.35,23.35,23.15,23.16]},{ x:'05/09/2024',y:[23.15,23.38,23.15,23.35]},{ x:'05/10/2024',y:[23.35,23.39,23.27,23.39]},{ x:'05/13/2024',y:[24.00,24.00,23.18,23.36]},{ x:'05/14/2024',y:[23.36,23.36,23.17,23.20]},{ x:'05/15/2024',y:[23.20,23.20,23.07,23.10]},{ x:'05/16/2024',y:[23.10,23.14,22.98,23.12]},{ x:'05/17/2024',y:[22.95,23.12,22.95,23.12]},{ x:'05/20/2024',y:[23.60,23.60,23.33,23.43]},{ x:'05/21/2024',y:[23.35,23.35,23.30,23.34]},{ x:'05/22/2024',y:[23.34,23.35,23.25,23.35]},{ x:'05/23/2024',y:[23.25,23.25,23.05,23.05]},{ x:'05/24/2024',y:[23.03,23.08,22.90,22.91]},{ x:'06/11/2024',y:[22.43,22.43,22.27,22.31]},{ x:'06/12/2024',y:[22.35,22.35,22.30,22.30]},{ x:'06/13/2024',y:[22.36,22.39,22.30,22.30]},{ x:'06/14/2024',y:[22.30,22.30,22.21,22.26]},{ x:'06/17/2024',y:[22.36,22.44,22.36,22.42]},{ x:'06/18/2024',y:[22.48,22.51,22.46,22.47]},{ x:'06/19/2024',y:[22.41,22.43,22.34,22.36]},{ x:'06/20/2024',y:[22.35,22.36,22.18,22.18]},{ x:'06/21/2024',y:[22.10,22.10,21.94,22.00]},{ x:'06/24/2024',y:[22.01,22.10,21.94,22.10]},{ x:'06/25/2024',y:[22.10,22.10,21.92,22.01]},{ x:'06/26/2024',y:[21.93,21.98,21.87,21.96]},{ x:'06/27/2024',y:[22.11,22.11,22.00,22.03]},{ x:'06/28/2024',y:[22.00,22.15,22.00,22.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006207 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());