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/26/2024',y:[22.20,22.20,21.61,21.68]},{ x:'03/27/2024',y:[21.76,21.94,21.69,21.90]},{ x:'03/28/2024',y:[21.95,22.12,21.86,21.88]},{ x:'03/29/2024',y:[21.96,22.17,21.95,22.17]},{ x:'04/01/2024',y:[22.25,22.25,22.10,22.17]},{ x:'04/02/2024',y:[22.25,22.30,22.17,22.17]},{ x:'04/03/2024',y:[22.18,22.35,22.17,22.23]},{ x:'04/08/2024',y:[22.27,22.41,22.27,22.30]},{ x:'04/09/2024',y:[22.31,22.31,22.11,22.12]},{ x:'04/10/2024',y:[22.19,22.30,22.19,22.28]},{ x:'04/11/2024',y:[22.10,22.19,22.07,22.17]},{ x:'04/12/2024',y:[22.30,22.45,22.30,22.32]},{ x:'04/15/2024',y:[22.16,22.29,21.97,22.06]},{ x:'04/16/2024',y:[21.90,21.90,21.39,21.45]},{ x:'04/17/2024',y:[21.66,21.72,21.63,21.72]},{ x:'04/18/2024',y:[21.72,21.83,21.72,21.79]},{ x:'04/19/2024',y:[21.57,21.57,20.70,20.93]},{ x:'04/22/2024',y:[20.59,20.80,20.13,20.15]},{ x:'04/23/2024',y:[20.45,20.45,20.32,20.34]},{ x:'04/24/2024',y:[20.54,20.95,20.54,20.95]},{ x:'04/25/2024',y:[20.95,20.95,20.70,20.70]},{ x:'04/26/2024',y:[20.97,21.20,20.94,21.11]},{ x:'04/29/2024',y:[21.18,21.36,21.18,21.36]},{ x:'04/30/2024',y:[21.29,21.31,21.29,21.29]},{ x:'05/02/2024',y:[21.25,21.39,21.20,21.39]},{ x:'05/03/2024',y:[21.39,21.79,21.30,21.30]},{ x:'05/06/2024',y:[21.36,21.40,21.32,21.35]},{ x:'05/07/2024',y:[21.25,21.25,21.12,21.18]},{ x:'05/08/2024',y:[21.29,21.32,21.22,21.22]},{ x:'05/09/2024',y:[21.11,21.34,20.93,20.93]},{ x:'05/10/2024',y:[20.97,20.98,20.92,20.96]},{ x:'05/13/2024',y:[20.96,20.97,20.83,20.96]},{ x:'05/14/2024',y:[21.04,21.05,20.90,21.05]},{ x:'05/15/2024',y:[21.10,21.32,21.10,21.10]},{ x:'05/16/2024',y:[21.20,21.37,21.20,21.37]},{ x:'05/17/2024',y:[21.37,21.37,21.19,21.20]},{ x:'05/20/2024',y:[21.20,21.35,21.19,21.24]},{ x:'05/21/2024',y:[21.22,21.22,21.18,21.21]},{ x:'05/22/2024',y:[21.38,21.59,21.38,21.59]},{ x:'05/23/2024',y:[21.59,21.65,21.48,21.48]},{ x:'05/24/2024',y:[21.35,21.80,21.35,21.80]},{ x:'06/11/2024',y:[22.21,22.38,22.21,22.38]},{ x:'06/12/2024',y:[22.41,22.82,22.41,22.82]},{ x:'06/13/2024',y:[23.05,23.34,23.05,23.18]},{ x:'06/14/2024',y:[23.19,23.25,23.12,23.17]},{ x:'06/17/2024',y:[23.18,23.27,23.17,23.18]},{ x:'06/18/2024',y:[23.19,23.33,23.15,23.17]},{ x:'06/19/2024',y:[23.35,23.45,23.35,23.36]},{ x:'06/20/2024',y:[23.48,23.69,23.48,23.67]},{ x:'06/21/2024',y:[23.35,23.65,23.35,23.51]},{ x:'06/24/2024',y:[23.29,23.29,23.08,23.08]},{ x:'06/25/2024',y:[23.20,23.20,22.71,23.20]},{ x:'06/26/2024',y:[23.25,23.65,23.25,23.64]},{ x:'06/27/2024',y:[23.46,23.58,23.43,23.47]},{ x:'06/28/2024',y:[23.50,23.83,23.50,23.81]},{ x:'07/01/2024',y:[23.83,24.07,23.83,23.98]},{ x:'07/02/2024',y:[24.19,24.24,23.92,23.98]},{ x:'07/03/2024',y:[24.12,24.30,23.99,24.02]},{ x:'07/04/2024',y:[24.25,24.26,24.20,24.26]},{ x:'07/05/2024',y:[24.03,24.49,24.03,24.49]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006201 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());