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:[21.36,21.38,21.30,21.35]},{ x:'01/23/2024',y:[21.42,21.42,21.23,21.29]},{ x:'01/24/2024',y:[21.30,21.31,21.23,21.26]},{ x:'01/25/2024',y:[21.23,21.23,21.03,21.05]},{ x:'01/26/2024',y:[21.00,21.00,20.89,20.93]},{ x:'01/29/2024',y:[21.42,21.42,21.35,21.38]},{ x:'01/30/2024',y:[21.89,21.89,21.83,21.85]},{ x:'01/31/2024',y:[21.43,21.47,21.34,21.46]},{ x:'02/01/2024',y:[21.39,21.40,21.38,21.39]},{ x:'02/02/2024',y:[21.80,21.80,21.70,21.72]},{ x:'02/05/2024',y:[21.72,21.72,21.65,21.69]},{ x:'02/15/2024',y:[23.92,25.28,23.92,25.25]},{ x:'02/16/2024',y:[25.25,25.25,25.08,25.10]},{ x:'02/19/2024',y:[24.87,24.87,24.65,24.70]},{ x:'02/20/2024',y:[24.72,24.81,24.70,24.74]},{ x:'02/21/2024',y:[24.35,24.35,24.23,24.24]},{ x:'02/22/2024',y:[24.24,24.24,24.11,24.22]},{ x:'02/23/2024',y:[24.82,24.82,24.62,24.65]},{ x:'02/26/2024',y:[24.63,24.68,24.60,24.68]},{ x:'02/27/2024',y:[26.08,26.37,25.96,26.32]},{ x:'02/29/2024',y:[26.53,26.95,26.53,26.93]},{ x:'03/01/2024',y:[26.56,26.65,26.56,26.62]},{ x:'03/04/2024',y:[27.10,27.36,27.09,27.21]},{ x:'03/05/2024',y:[27.52,27.62,27.52,27.56]},{ x:'03/06/2024',y:[26.64,26.64,26.42,26.61]},{ x:'03/07/2024',y:[27.29,27.29,27.16,27.20]},{ x:'03/08/2024',y:[27.50,27.60,27.50,27.55]},{ x:'03/11/2024',y:[28.19,28.20,28.00,28.05]},{ x:'03/12/2024',y:[28.09,28.19,28.05,28.19]},{ x:'03/13/2024',y:[28.22,28.34,28.18,28.23]},{ x:'03/14/2024',y:[28.71,28.97,28.70,28.97]},{ x:'03/15/2024',y:[28.03,28.19,28.03,28.06]},{ x:'03/18/2024',y:[28.50,28.62,28.47,28.62]},{ x:'03/19/2024',y:[27.92,27.92,27.75,27.86]},{ x:'03/20/2024',y:[27.50,27.50,27.15,27.21]},{ x:'03/21/2024',y:[28.91,29.45,28.91,29.44]},{ x:'03/22/2024',y:[29.44,29.58,29.42,29.58]},{ x:'03/25/2024',y:[29.10,29.16,28.72,28.79]},{ x:'03/26/2024',y:[30.16,30.16,30.01,30.06]},{ x:'03/27/2024',y:[30.00,30.25,30.00,30.23]},{ x:'03/28/2024',y:[30.34,30.34,30.23,30.27]},{ x:'03/29/2024',y:[30.10,30.12,29.74,29.82]},{ x:'04/01/2024',y:[30.04,30.04,29.77,29.78]},{ x:'04/02/2024',y:[29.22,29.22,29.07,29.08]},{ x:'04/03/2024',y:[28.65,28.65,28.22,28.43]},{ x:'04/08/2024',y:[28.13,28.29,27.90,27.96]},{ x:'04/09/2024',y:[28.14,28.35,28.14,28.35]},{ x:'04/10/2024',y:[27.88,27.88,27.78,27.81]},{ x:'04/11/2024',y:[27.81,27.83,27.70,27.80]},{ x:'04/12/2024',y:[28.18,28.20,28.06,28.20]},{ x:'04/15/2024',y:[27.87,27.87,27.01,27.25]},{ x:'04/16/2024',y:[26.61,26.61,26.11,26.27]},{ x:'04/17/2024',y:[26.36,26.50,26.22,26.42]},{ x:'04/18/2024',y:[24.41,24.41,23.84,23.85]},{ x:'04/19/2024',y:[23.84,23.84,23.35,23.52]},{ x:'04/22/2024',y:[23.73,23.95,23.73,23.94]},{ x:'04/23/2024',y:[24.77,25.07,24.77,24.99]},{ x:'04/24/2024',y:[25.54,25.66,25.54,25.64]},{ x:'04/25/2024',y:[25.17,25.17,24.98,24.99]},{ x:'04/26/2024',y:[25.17,25.17,25.02,25.02]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00909 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());