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/19/2024',y:[24.39,24.43,24.36,24.36]},{ x:'01/22/2024',y:[24.45,24.49,24.39,24.39]},{ x:'01/23/2024',y:[24.39,24.44,24.32,24.44]},{ x:'01/24/2024',y:[24.42,24.43,24.38,24.38]},{ x:'01/25/2024',y:[24.28,24.28,24.25,24.28]},{ x:'01/26/2024',y:[24.31,24.35,24.31,24.32]},{ x:'01/29/2024',y:[24.32,24.38,24.32,24.36]},{ x:'01/30/2024',y:[24.43,24.43,24.40,24.43]},{ x:'01/31/2024',y:[24.48,24.49,24.43,24.46]},{ x:'02/01/2024',y:[24.52,24.62,24.52,24.60]},{ x:'02/02/2024',y:[24.70,24.70,24.65,24.68]},{ x:'02/05/2024',y:[24.47,24.47,24.39,24.40]},{ x:'02/15/2024',y:[24.01,24.01,23.90,23.93]},{ x:'02/16/2024',y:[24.01,24.04,24.01,24.03]},{ x:'02/19/2024',y:[24.18,24.24,24.17,24.23]},{ x:'02/20/2024',y:[24.17,24.20,24.16,24.20]},{ x:'02/21/2024',y:[24.25,24.35,24.25,24.33]},{ x:'02/22/2024',y:[24.30,24.32,24.27,24.32]},{ x:'02/23/2024',y:[24.28,24.29,24.25,24.25]},{ x:'02/26/2024',y:[24.34,24.36,24.32,24.34]},{ x:'02/27/2024',y:[24.34,24.37,24.33,24.36]},{ x:'02/29/2024',y:[24.36,24.40,24.36,24.36]},{ x:'03/01/2024',y:[24.46,24.50,24.46,24.46]},{ x:'03/04/2024',y:[24.92,24.94,24.90,24.90]},{ x:'03/05/2024',y:[25.30,25.32,25.25,25.30]},{ x:'03/06/2024',y:[25.43,25.44,25.40,25.43]},{ x:'03/07/2024',y:[25.68,25.82,25.65,25.80]},{ x:'03/08/2024',y:[25.84,25.84,25.73,25.74]},{ x:'03/11/2024',y:[26.09,26.10,25.98,26.05]},{ x:'03/12/2024',y:[26.03,26.07,25.99,26.03]},{ x:'03/13/2024',y:[25.81,25.81,25.75,25.80]},{ x:'03/14/2024',y:[25.95,25.98,25.88,25.90]},{ x:'03/15/2024',y:[25.85,25.85,25.79,25.81]},{ x:'03/18/2024',y:[25.76,25.76,25.63,25.65]},{ x:'03/19/2024',y:[25.79,25.83,25.77,25.77]},{ x:'03/20/2024',y:[25.79,25.80,25.75,25.77]},{ x:'03/21/2024',y:[26.23,26.38,26.22,26.27]},{ x:'03/22/2024',y:[26.09,26.11,25.94,25.96]},{ x:'03/25/2024',y:[25.89,25.99,25.85,25.90]},{ x:'03/26/2024',y:[25.94,25.94,25.88,25.93]},{ x:'03/27/2024',y:[25.95,26.01,25.94,25.98]},{ x:'03/28/2024',y:[26.10,26.20,26.10,26.20]},{ x:'03/29/2024',y:[26.47,26.68,26.45,26.68]},{ x:'04/01/2024',y:[26.89,27.03,26.89,26.96]},{ x:'04/02/2024',y:[26.85,26.93,26.79,26.91]},{ x:'04/03/2024',y:[27.22,27.30,27.15,27.26]},{ x:'04/08/2024',y:[27.50,28.01,27.46,27.94]},{ x:'04/09/2024',y:[27.94,27.98,27.87,27.97]},{ x:'04/10/2024',y:[28.00,28.11,27.93,28.11]},{ x:'04/11/2024',y:[27.87,27.97,27.83,27.95]},{ x:'04/12/2024',y:[28.41,28.56,28.39,28.46]},{ x:'04/15/2024',y:[28.09,28.21,28.02,28.13]},{ x:'04/16/2024',y:[28.50,28.56,28.42,28.55]},{ x:'04/17/2024',y:[28.50,28.50,28.41,28.43]},{ x:'04/18/2024',y:[28.27,28.36,28.20,28.36]},{ x:'04/19/2024',y:[28.39,28.89,28.39,28.52]},{ x:'04/22/2024',y:[28.43,28.46,28.21,28.27]},{ x:'04/23/2024',y:[27.85,27.87,27.44,27.61]},{ x:'04/24/2024',y:[27.64,27.80,27.64,27.77]},{ x:'04/25/2024',y:[27.67,27.70,27.52,27.61]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00635u 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());