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:'12/30/2022',y:[23.43,23.48,23.42,23.47]},{ x:'01/03/2023',y:[23.63,23.79,23.59,23.75]},{ x:'01/04/2023',y:[23.75,23.84,23.71,23.82]},{ x:'01/05/2023',y:[23.92,23.97,23.87,23.89]},{ x:'01/06/2023',y:[23.64,23.74,23.63,23.70]},{ x:'01/09/2023',y:[24.08,24.22,24.08,24.19]},{ x:'01/10/2023',y:[24.12,24.15,24.08,24.11]},{ x:'01/11/2023',y:[24.19,24.20,24.11,24.19]},{ x:'01/12/2023',y:[24.16,24.25,24.16,24.25]},{ x:'01/13/2023',y:[24.43,24.43,24.38,24.38]},{ x:'01/16/2023',y:[24.63,24.78,24.63,24.70]},{ x:'01/17/2023',y:[24.69,24.69,24.53,24.59]},{ x:'01/30/2023',y:[24.72,24.77,24.65,24.75]},{ x:'01/31/2023',y:[24.64,24.69,24.58,24.60]},{ x:'02/01/2023',y:[24.67,24.70,24.64,24.66]},{ x:'02/02/2023',y:[24.96,25.02,24.94,24.97]},{ x:'02/03/2023',y:[24.51,24.53,24.47,24.50]},{ x:'02/06/2023',y:[23.90,24.02,23.84,24.01]},{ x:'02/07/2023',y:[23.89,23.97,23.89,23.96]},{ x:'02/08/2023',y:[23.99,24.02,23.97,24.00]},{ x:'02/09/2023',y:[23.98,24.05,23.94,24.04]},{ x:'02/10/2023',y:[23.79,23.84,23.69,23.71]},{ x:'02/13/2023',y:[23.79,23.84,23.76,23.78]},{ x:'02/14/2023',y:[23.74,23.77,23.71,23.76]},{ x:'02/15/2023',y:[23.74,23.77,23.60,23.60]},{ x:'02/16/2023',y:[23.45,23.56,23.45,23.50]},{ x:'02/17/2023',y:[23.40,23.43,23.34,23.34]},{ x:'02/20/2023',y:[23.51,23.57,23.50,23.53]},{ x:'02/21/2023',y:[23.51,23.53,23.47,23.49]},{ x:'02/22/2023',y:[23.49,23.49,23.45,23.47]},{ x:'02/23/2023',y:[23.33,23.36,23.32,23.35]},{ x:'02/24/2023',y:[23.32,23.33,23.29,23.31]},{ x:'03/01/2023',y:[23.31,23.41,23.29,23.41]},{ x:'03/02/2023',y:[23.45,23.45,23.38,23.41]},{ x:'03/03/2023',y:[23.46,23.51,23.46,23.47]},{ x:'03/06/2023',y:[23.66,23.68,23.61,23.64]},{ x:'03/07/2023',y:[23.56,23.61,23.52,23.58]},{ x:'03/08/2023',y:[23.15,23.15,23.09,23.12]},{ x:'03/09/2023',y:[23.15,23.17,23.12,23.17]},{ x:'03/10/2023',y:[23.38,23.41,23.31,23.32]},{ x:'03/13/2023',y:[23.92,24.05,23.86,23.96]},{ x:'03/14/2023',y:[24.29,24.32,24.19,24.19]},{ x:'03/15/2023',y:[24.19,24.24,24.16,24.18]},{ x:'03/16/2023',y:[24.33,24.37,24.28,24.35]},{ x:'03/17/2023',y:[24.38,24.55,24.38,24.54]},{ x:'03/20/2023',y:[25.04,25.13,25.01,25.12]},{ x:'03/21/2023',y:[25.17,25.22,25.14,25.17]},{ x:'03/22/2023',y:[24.70,24.71,24.61,24.62]},{ x:'03/23/2023',y:[25.06,25.11,24.99,25.10]},{ x:'03/24/2023',y:[25.29,25.31,25.25,25.26]},{ x:'03/27/2023',y:[25.05,25.12,25.04,25.05]},{ x:'03/28/2023',y:[24.89,24.91,24.85,24.86]},{ x:'03/29/2023',y:[25.02,25.02,24.94,24.95]},{ x:'03/30/2023',y:[24.89,24.92,24.82,24.92]},{ x:'03/31/2023',y:[25.10,25.17,25.10,25.13]},{ x:'04/06/2023',y:[25.51,25.56,25.48,25.54]},{ x:'04/07/2023',y:[25.47,25.47,25.39,25.41]},{ x:'04/10/2023',y:[25.32,25.34,25.19,25.25]},{ x:'04/11/2023',y:[25.21,25.37,25.20,25.37]},{ x:'04/12/2023',y:[25.40,25.59,25.40,25.57]} ] }], 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());