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/25/2022',y:[25.54,25.54,25.54,25.54]},{ x:'11/28/2022',y:[25.12,25.12,25.04,25.11]},{ x:'11/29/2022',y:[24.88,25.24,24.88,25.24]},{ x:'11/30/2022',y:[25.33,25.55,25.33,25.55]},{ x:'12/01/2022',y:[26.00,26.00,25.93,25.93]},{ x:'12/02/2022',y:[25.75,25.77,25.66,25.70]},{ x:'12/05/2022',y:[25.74,25.74,25.72,25.72]},{ x:'12/06/2022',y:[25.55,25.55,25.19,25.19]},{ x:'12/07/2022',y:[24.88,25.03,24.88,24.94]},{ x:'12/08/2022',y:[24.94,24.94,24.64,24.74]},{ x:'12/09/2022',y:[25.21,25.21,25.15,25.16]},{ x:'12/12/2022',y:[25.00,25.00,25.00,25.00]},{ x:'12/13/2022',y:[24.93,24.95,24.93,24.95]},{ x:'12/14/2022',y:[25.19,25.24,25.19,25.24]},{ x:'12/15/2022',y:[25.05,25.09,25.01,25.07]},{ x:'12/16/2022',y:[24.59,24.69,24.59,24.64]},{ x:'12/19/2022',y:[24.63,24.72,24.63,24.72]},{ x:'12/20/2022',y:[24.53,24.62,24.31,24.41]},{ x:'12/21/2022',y:[24.45,24.52,24.34,24.42]},{ x:'12/22/2022',y:[24.63,24.72,24.63,24.72]},{ x:'12/23/2022',y:[24.40,24.42,24.31,24.35]},{ x:'12/26/2022',y:[24.35,24.40,24.35,24.40]},{ x:'12/27/2022',y:[24.48,24.60,24.48,24.57]},{ x:'12/28/2022',y:[24.18,24.18,24.07,24.15]},{ x:'12/29/2022',y:[23.96,23.96,23.95,23.96]},{ x:'12/30/2022',y:[24.00,24.00,23.97,23.97]},{ x:'01/03/2023',y:[23.82,24.06,23.69,24.06]},{ x:'01/04/2023',y:[24.10,24.26,24.10,24.26]},{ x:'01/05/2023',y:[24.38,24.38,24.33,24.37]},{ x:'01/06/2023',y:[24.50,24.71,24.50,24.71]},{ x:'01/09/2023',y:[25.00,25.41,25.00,25.41]},{ x:'01/10/2023',y:[25.49,25.68,25.49,25.66]},{ x:'01/11/2023',y:[25.59,25.71,25.59,25.71]},{ x:'01/12/2023',y:[25.71,25.71,25.61,25.67]},{ x:'01/13/2023',y:[25.81,25.87,25.74,25.74]},{ x:'01/16/2023',y:[25.91,26.03,25.91,26.03]},{ x:'01/17/2023',y:[25.91,25.93,25.83,25.83]},{ x:'01/30/2023',y:[26.00,26.54,26.00,26.51]},{ x:'01/31/2023',y:[26.28,26.28,26.25,26.25]},{ x:'02/01/2023',y:[26.25,26.37,26.25,26.34]},{ x:'02/02/2023',y:[26.77,26.82,26.76,26.82]},{ x:'02/03/2023',y:[26.88,26.89,26.87,26.87]},{ x:'02/06/2023',y:[26.73,26.73,26.50,26.50]},{ x:'02/07/2023',y:[26.31,26.44,26.31,26.44]},{ x:'02/08/2023',y:[26.69,26.93,26.69,26.93]},{ x:'02/09/2023',y:[26.90,26.93,26.90,26.93]},{ x:'02/10/2023',y:[26.86,26.86,26.85,26.85]},{ x:'02/13/2023',y:[26.71,26.71,26.60,26.60]},{ x:'02/14/2023',y:[26.78,26.88,26.73,26.83]},{ x:'02/15/2023',y:[26.61,26.65,26.40,26.40]},{ x:'02/16/2023',y:[26.62,26.92,26.62,26.92]},{ x:'02/17/2023',y:[26.50,26.59,26.38,26.38]},{ x:'02/20/2023',y:[26.47,26.47,26.43,26.43]},{ x:'02/21/2023',y:[26.36,26.48,26.36,26.37]},{ x:'02/22/2023',y:[26.00,26.13,25.89,26.13]},{ x:'02/23/2023',y:[26.40,26.40,26.40,26.40]},{ x:'02/24/2023',y:[26.43,26.43,26.23,26.23]},{ x:'03/01/2023',y:[25.98,26.29,25.98,26.29]},{ x:'03/02/2023',y:[26.29,26.32,26.29,26.32]},{ x:'03/03/2023',y:[26.33,26.35,26.33,26.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00735 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());