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:'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]},{ x:'07/12/2024',y:[25.18,25.18,24.69,24.70]},{ x:'07/15/2024',y:[24.85,24.85,24.70,24.74]},{ x:'07/16/2024',y:[24.79,24.86,24.70,24.70]},{ x:'07/17/2024',y:[24.70,24.89,24.70,24.72]},{ x:'07/18/2024',y:[24.59,24.59,24.00,24.16]},{ x:'07/19/2024',y:[24.16,24.16,23.80,23.82]},{ x:'07/22/2024',y:[23.80,23.80,22.80,22.95]},{ x:'07/23/2024',y:[23.05,23.35,23.05,23.34]},{ x:'07/26/2024',y:[22.86,23.14,22.83,23.00]},{ x:'07/29/2024',y:[23.40,23.45,22.88,22.88]},{ x:'07/30/2024',y:[22.80,22.96,22.34,22.96]},{ x:'07/31/2024',y:[22.99,22.99,22.73,22.75]},{ x:'08/01/2024',y:[23.00,23.17,23.00,23.03]},{ x:'08/02/2024',y:[22.75,22.75,22.15,22.21]},{ x:'08/05/2024',y:[21.84,21.84,20.45,20.55]},{ x:'08/06/2024',y:[20.74,21.23,19.74,21.23]},{ x:'08/07/2024',y:[21.23,21.88,20.76,21.85]},{ x:'08/08/2024',y:[21.50,21.80,21.29,21.73]},{ x:'08/09/2024',y:[21.91,22.33,21.91,22.22]} ] }], 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());