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:'11/17/2022',y:[23.10,23.10,22.92,22.94]},{ x:'11/18/2022',y:[22.95,22.96,22.91,22.91]},{ x:'11/21/2022',y:[22.78,22.78,22.69,22.72]},{ x:'11/22/2022',y:[22.66,22.71,22.66,22.70]},{ x:'11/23/2022',y:[22.65,22.66,22.55,22.57]},{ x:'11/24/2022',y:[22.78,22.84,22.78,22.82]},{ x:'11/25/2022',y:[22.77,22.86,22.76,22.82]},{ x:'11/28/2022',y:[22.76,22.77,22.69,22.75]},{ x:'11/29/2022',y:[22.62,22.76,22.61,22.76]},{ x:'11/30/2022',y:[22.75,22.79,22.72,22.78]},{ x:'12/01/2022',y:[23.05,23.10,22.99,23.09]},{ x:'12/02/2022',y:[23.30,23.34,23.27,23.30]},{ x:'12/05/2022',y:[23.33,23.43,23.33,23.41]},{ x:'12/06/2022',y:[22.93,22.99,22.91,22.93]},{ x:'12/07/2022',y:[22.93,22.98,22.89,22.94]},{ x:'12/08/2022',y:[23.12,23.12,23.06,23.07]},{ x:'12/09/2022',y:[23.17,23.28,23.15,23.28]},{ x:'12/12/2022',y:[23.22,23.22,23.10,23.10]},{ x:'12/13/2022',y:[23.08,23.10,23.05,23.07]},{ x:'12/14/2022',y:[23.45,23.45,23.40,23.40]},{ x:'12/15/2022',y:[23.37,23.37,23.14,23.17]},{ x:'12/16/2022',y:[22.99,23.07,22.97,22.99]},{ x:'12/19/2022',y:[23.20,23.23,23.17,23.18]},{ x:'12/20/2022',y:[23.09,23.20,23.06,23.14]},{ x:'12/21/2022',y:[23.52,23.53,23.44,23.44]},{ x:'12/22/2022',y:[23.50,23.52,23.48,23.52]},{ x:'12/23/2022',y:[23.16,23.21,23.14,23.21]},{ x:'12/26/2022',y:[23.43,23.43,23.26,23.33]},{ x:'12/27/2022',y:[23.30,23.33,23.25,23.31]},{ x:'12/28/2022',y:[23.39,23.42,23.38,23.39]},{ x:'12/29/2022',y:[23.34,23.36,23.31,23.36]},{ 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]} ] }], 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());