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/18/2022',y:[25.63,25.74,25.40,25.43]},{ x:'11/21/2022',y:[25.43,25.47,25.21,25.22]},{ x:'11/22/2022',y:[25.22,25.22,25.05,25.10]},{ x:'11/23/2022',y:[25.22,25.33,25.22,25.30]},{ x:'11/24/2022',y:[25.40,25.54,25.38,25.54]},{ x:'11/25/2022',y:[25.57,25.65,25.50,25.52]},{ x:'11/28/2022',y:[25.32,25.42,25.17,25.32]},{ x:'11/29/2022',y:[25.30,25.50,25.18,25.47]},{ x:'11/30/2022',y:[25.48,25.66,25.46,25.65]},{ x:'12/01/2022',y:[25.85,25.97,25.76,25.82]},{ x:'12/02/2022',y:[25.79,25.80,25.67,25.73]},{ x:'12/05/2022',y:[25.73,25.95,25.73,25.87]},{ x:'12/06/2022',y:[25.87,25.87,25.60,25.61]},{ x:'12/07/2022',y:[25.52,25.58,25.33,25.44]},{ x:'12/08/2022',y:[25.42,25.42,25.17,25.29]},{ x:'12/09/2022',y:[25.41,25.52,25.40,25.51]},{ x:'12/12/2022',y:[25.45,25.50,25.26,25.50]},{ x:'12/13/2022',y:[25.53,25.62,25.50,25.53]},{ x:'12/14/2022',y:[25.56,25.72,25.56,25.68]},{ x:'12/15/2022',y:[25.68,25.79,25.63,25.70]},{ x:'12/16/2022',y:[25.46,25.78,25.37,25.70]},{ x:'12/19/2022',y:[25.69,25.81,25.58,25.73]},{ x:'12/20/2022',y:[25.69,25.72,25.29,25.30]},{ x:'12/21/2022',y:[25.35,25.40,25.31,25.34]},{ x:'12/22/2022',y:[25.50,25.69,25.48,25.67]},{ x:'12/23/2022',y:[25.49,25.61,25.41,25.60]},{ x:'12/26/2022',y:[25.60,25.63,25.52,25.58]},{ x:'12/27/2022',y:[25.60,25.70,25.60,25.63]},{ x:'12/28/2022',y:[25.55,25.55,25.30,25.38]},{ x:'12/29/2022',y:[25.22,25.36,25.09,25.29]},{ x:'12/30/2022',y:[25.46,25.50,25.40,25.40]},{ x:'01/03/2023',y:[25.28,25.50,25.19,25.49]},{ x:'01/04/2023',y:[25.49,25.55,25.41,25.45]},{ x:'01/05/2023',y:[25.55,25.60,25.43,25.46]},{ x:'01/06/2023',y:[25.45,25.68,25.45,25.66]},{ x:'01/09/2023',y:[25.90,25.96,25.80,25.94]},{ x:'01/10/2023',y:[25.98,26.07,25.97,26.06]},{ x:'01/11/2023',y:[26.07,26.15,26.06,26.07]},{ x:'01/12/2023',y:[26.08,26.11,25.92,25.99]},{ x:'01/13/2023',y:[26.05,26.12,25.98,25.98]},{ x:'01/16/2023',y:[26.05,26.07,26.00,26.02]},{ x:'01/17/2023',y:[26.04,26.07,26.01,26.06]},{ x:'01/30/2023',y:[26.47,26.55,26.40,26.53]},{ x:'01/31/2023',y:[26.55,26.68,26.53,26.54]},{ x:'02/01/2023',y:[26.60,26.68,26.59,26.67]},{ x:'02/02/2023',y:[26.81,27.00,26.78,26.99]},{ x:'02/03/2023',y:[27.00,27.05,26.85,27.00]},{ x:'02/06/2023',y:[26.98,26.98,26.85,26.92]},{ x:'02/07/2023',y:[26.91,26.96,26.85,26.94]},{ x:'02/08/2023',y:[27.03,27.17,27.02,27.15]},{ x:'02/09/2023',y:[27.14,27.17,27.04,27.15]},{ x:'02/10/2023',y:[27.15,27.15,26.97,27.02]},{ x:'02/13/2023',y:[26.99,27.01,26.82,26.97]},{ x:'02/14/2023',y:[27.01,27.15,27.01,27.13]},{ x:'02/15/2023',y:[27.13,27.16,27.03,27.05]},{ x:'02/16/2023',y:[27.07,27.35,27.07,27.33]},{ x:'02/17/2023',y:[27.23,27.25,27.17,27.24]},{ x:'02/20/2023',y:[27.27,27.42,27.25,27.41]},{ x:'02/21/2023',y:[27.41,27.55,27.36,27.53]},{ x:'02/22/2023',y:[27.38,27.42,27.24,27.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0056 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());