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:'02/20/2024',y:[25.33,25.48,25.30,25.47]},{ x:'02/21/2024',y:[25.52,25.52,25.40,25.40]},{ x:'02/22/2024',y:[25.40,25.46,25.36,25.44]},{ x:'02/23/2024',y:[25.39,25.43,25.32,25.32]},{ x:'02/26/2024',y:[25.30,25.32,25.26,25.30]},{ x:'02/27/2024',y:[25.30,25.39,25.23,25.24]},{ x:'02/29/2024',y:[25.24,25.49,25.24,25.46]},{ x:'03/01/2024',y:[25.36,25.43,25.31,25.40]},{ x:'03/04/2024',y:[25.26,25.40,25.26,25.36]},{ x:'03/05/2024',y:[25.30,25.37,25.30,25.34]},{ x:'03/06/2024',y:[25.38,25.53,25.38,25.47]},{ x:'03/07/2024',y:[25.41,25.59,25.39,25.56]},{ x:'03/08/2024',y:[25.49,25.70,25.46,25.65]},{ x:'03/11/2024',y:[25.69,25.83,25.69,25.75]},{ x:'03/12/2024',y:[25.82,25.90,25.76,25.89]},{ x:'03/13/2024',y:[25.85,26.07,25.85,26.07]},{ x:'03/14/2024',y:[26.10,26.38,26.10,26.36]},{ x:'03/15/2024',y:[26.35,26.38,26.15,26.38]},{ x:'03/18/2024',y:[26.33,26.33,26.16,26.22]},{ x:'03/19/2024',y:[26.17,26.24,26.05,26.17]},{ x:'03/20/2024',y:[26.20,26.21,26.06,26.06]},{ x:'03/21/2024',y:[26.12,26.48,26.12,26.39]},{ x:'03/22/2024',y:[26.32,26.47,26.25,26.27]},{ x:'03/25/2024',y:[26.20,26.32,26.18,26.31]},{ x:'03/26/2024',y:[26.33,26.57,26.33,26.46]},{ x:'03/27/2024',y:[26.46,26.60,26.42,26.53]},{ x:'03/28/2024',y:[26.50,26.56,26.42,26.43]},{ x:'03/29/2024',y:[26.51,26.57,26.41,26.41]},{ x:'04/01/2024',y:[26.58,26.68,26.58,26.61]},{ x:'04/02/2024',y:[26.54,26.62,26.51,26.59]},{ x:'04/03/2024',y:[26.56,26.56,26.37,26.37]},{ x:'04/08/2024',y:[26.31,26.60,26.29,26.54]},{ x:'04/09/2024',y:[26.54,26.78,26.54,26.78]},{ x:'04/10/2024',y:[26.78,26.81,26.69,26.70]},{ x:'04/11/2024',y:[26.69,26.69,26.52,26.59]},{ x:'04/12/2024',y:[26.43,26.50,26.40,26.49]},{ x:'04/15/2024',y:[26.39,26.59,26.37,26.57]},{ x:'04/16/2024',y:[26.46,26.46,25.87,25.96]},{ x:'04/17/2024',y:[25.96,26.10,25.90,26.05]},{ x:'04/18/2024',y:[26.05,26.33,25.97,26.30]},{ x:'04/19/2024',y:[26.23,26.23,25.70,25.89]},{ x:'04/22/2024',y:[26.21,26.45,26.15,26.41]},{ x:'04/23/2024',y:[26.41,26.56,26.41,26.49]},{ x:'04/24/2024',y:[26.54,26.62,26.39,26.39]},{ x:'04/25/2024',y:[26.29,26.29,26.05,26.14]},{ x:'04/26/2024',y:[26.11,26.36,26.11,26.26]},{ x:'04/29/2024',y:[26.63,26.97,26.63,26.95]},{ x:'04/30/2024',y:[26.93,27.00,26.84,26.87]},{ x:'05/02/2024',y:[26.80,27.00,26.80,26.95]},{ x:'05/03/2024',y:[27.17,27.17,26.93,26.93]},{ x:'05/06/2024',y:[27.10,27.56,27.10,27.46]},{ x:'05/07/2024',y:[27.52,27.60,27.34,27.44]},{ x:'05/08/2024',y:[27.44,27.50,27.37,27.46]},{ x:'05/09/2024',y:[27.42,27.52,27.32,27.32]},{ x:'05/10/2024',y:[27.40,27.89,27.40,27.88]},{ x:'05/13/2024',y:[27.88,27.95,27.70,27.79]},{ x:'05/14/2024',y:[27.79,27.84,27.61,27.61]},{ x:'05/15/2024',y:[27.75,28.10,27.75,27.92]},{ x:'05/16/2024',y:[28.05,28.21,28.05,28.09]},{ x:'05/17/2024',y:[28.08,28.24,28.04,28.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00701 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());