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:[23.76,23.97,23.61,23.80]},{ x:'01/23/2024',y:[23.56,23.83,23.56,23.72]},{ x:'01/24/2024',y:[23.81,24.00,23.81,23.97]},{ x:'01/25/2024',y:[24.17,24.30,24.14,24.20]},{ x:'01/26/2024',y:[24.10,24.10,23.67,23.72]},{ x:'01/29/2024',y:[23.57,23.59,23.33,23.52]},{ x:'01/30/2024',y:[23.96,23.96,23.72,23.75]},{ x:'01/31/2024',y:[23.37,23.37,23.10,23.22]},{ x:'02/01/2024',y:[23.23,23.24,23.20,23.22]},{ x:'02/02/2024',y:[23.40,23.40,23.30,23.31]},{ x:'02/05/2024',y:[23.47,23.51,23.42,23.51]},{ x:'02/15/2024',y:[24.57,25.04,24.57,25.00]},{ x:'02/16/2024',y:[25.00,25.04,24.86,24.99]},{ x:'02/19/2024',y:[24.93,24.93,24.75,24.79]},{ x:'02/20/2024',y:[24.79,24.81,24.73,24.77]},{ x:'02/21/2024',y:[24.49,24.49,24.33,24.34]},{ x:'02/22/2024',y:[24.79,25.14,24.65,25.09]},{ x:'02/23/2024',y:[25.32,25.68,25.32,25.58]},{ x:'02/26/2024',y:[25.42,25.42,25.26,25.30]},{ x:'02/27/2024',y:[25.36,25.54,25.36,25.52]},{ x:'02/29/2024',y:[25.45,25.45,25.21,25.33]},{ x:'03/01/2024',y:[25.79,26.12,25.62,26.12]},{ x:'03/04/2024',y:[27.19,27.26,27.07,27.24]},{ x:'03/05/2024',y:[27.45,27.45,27.23,27.30]},{ x:'03/06/2024',y:[27.11,27.11,26.86,26.96]},{ x:'03/07/2024',y:[27.24,27.58,27.24,27.35]},{ x:'03/08/2024',y:[28.36,28.36,28.13,28.19]},{ x:'03/11/2024',y:[27.79,27.79,27.10,27.14]},{ x:'03/12/2024',y:[27.04,27.08,26.85,27.08]},{ x:'03/13/2024',y:[27.33,27.73,27.23,27.37]},{ x:'03/14/2024',y:[27.00,27.00,26.80,26.94]},{ x:'03/15/2024',y:[26.54,26.59,26.35,26.38]},{ x:'03/18/2024',y:[26.41,26.45,26.32,26.45]},{ x:'03/19/2024',y:[26.32,26.32,26.17,26.23]},{ x:'03/20/2024',y:[26.22,26.35,26.22,26.31]},{ x:'03/21/2024',y:[26.65,27.19,26.65,27.19]},{ x:'03/22/2024',y:[27.21,27.36,27.20,27.25]},{ x:'03/25/2024',y:[27.22,27.27,27.13,27.13]},{ x:'03/26/2024',y:[27.16,27.18,27.02,27.15]},{ x:'03/27/2024',y:[26.99,27.05,26.85,27.01]},{ x:'03/28/2024',y:[27.25,27.27,27.15,27.17]},{ x:'03/29/2024',y:[27.20,27.31,27.20,27.28]},{ x:'04/01/2024',y:[27.35,27.35,27.26,27.31]},{ x:'04/02/2024',y:[27.35,27.49,27.35,27.46]},{ x:'04/03/2024',y:[27.45,27.45,27.05,27.09]},{ x:'04/08/2024',y:[27.10,27.10,26.92,26.92]},{ x:'04/09/2024',y:[26.93,26.97,26.92,26.97]},{ x:'04/10/2024',y:[27.00,27.19,27.00,27.10]},{ x:'04/11/2024',y:[26.78,26.89,26.70,26.89]},{ x:'04/12/2024',y:[27.57,27.57,27.33,27.37]},{ x:'04/15/2024',y:[26.81,26.81,26.62,26.72]},{ x:'04/16/2024',y:[26.29,26.33,26.17,26.33]},{ x:'04/17/2024',y:[26.41,26.74,26.41,26.70]},{ x:'04/18/2024',y:[26.10,26.10,25.83,25.95]},{ x:'04/19/2024',y:[25.45,25.45,24.90,25.04]},{ x:'04/22/2024',y:[24.79,24.79,24.40,24.59]},{ x:'04/23/2024',y:[24.83,24.90,24.83,24.89]},{ x:'04/24/2024',y:[25.38,25.71,25.38,25.67]},{ x:'04/25/2024',y:[25.45,25.58,25.45,25.48]},{ x:'04/26/2024',y:[26.19,26.30,26.06,26.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00911 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());