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:'01/22/2024',y:[24.79,24.87,24.79,24.82]},{ x:'01/23/2024',y:[24.87,24.91,24.82,24.90]},{ x:'01/24/2024',y:[24.90,24.97,24.88,24.95]},{ x:'01/25/2024',y:[24.98,25.00,24.94,25.00]},{ x:'01/26/2024',y:[24.99,25.15,24.99,25.10]},{ x:'01/29/2024',y:[25.10,25.23,25.08,25.20]},{ x:'01/30/2024',y:[25.20,25.20,25.01,25.05]},{ x:'01/31/2024',y:[24.95,25.00,24.94,24.96]},{ x:'02/01/2024',y:[25.06,25.16,25.01,25.12]},{ x:'02/02/2024',y:[25.11,25.11,25.05,25.09]},{ x:'02/05/2024',y:[24.83,25.03,24.83,25.01]},{ x:'02/15/2024',y:[25.02,25.15,24.97,25.08]},{ x:'02/16/2024',y:[25.09,25.19,25.06,25.16]},{ x:'02/19/2024',y:[25.34,25.38,25.28,25.36]},{ 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]} ] }], 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());