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/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]},{ x:'02/23/2023',y:[27.40,27.78,27.40,27.74]},{ x:'02/24/2023',y:[27.77,27.85,27.65,27.67]},{ x:'03/01/2023',y:[27.58,27.72,27.42,27.72]},{ x:'03/02/2023',y:[27.73,27.79,27.57,27.78]},{ x:'03/03/2023',y:[27.85,28.00,27.85,27.95]},{ x:'03/06/2023',y:[28.07,28.30,28.07,28.25]},{ x:'03/07/2023',y:[28.29,28.40,28.20,28.38]},{ x:'03/08/2023',y:[28.29,28.37,28.18,28.37]},{ x:'03/09/2023',y:[28.37,28.38,28.21,28.24]},{ x:'03/10/2023',y:[28.00,28.01,27.83,27.86]},{ x:'03/13/2023',y:[27.70,27.96,27.55,27.93]},{ x:'03/14/2023',y:[27.73,27.79,27.60,27.66]},{ x:'03/15/2023',y:[27.81,27.92,27.66,27.66]},{ x:'03/16/2023',y:[27.57,27.60,27.40,27.50]},{ x:'03/17/2023',y:[27.55,27.76,27.54,27.76]},{ x:'03/20/2023',y:[27.77,27.81,27.70,27.76]},{ x:'03/21/2023',y:[27.80,27.90,27.80,27.84]} ] }], 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());