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:[25.37,25.46,25.37,25.40]},{ x:'01/03/2023',y:[25.00,25.00,24.89,24.98]},{ x:'01/04/2023',y:[24.98,25.09,24.95,24.95]},{ x:'01/05/2023',y:[24.98,25.01,24.95,24.96]},{ x:'01/06/2023',y:[25.01,25.15,25.01,25.09]},{ x:'01/09/2023',y:[25.42,25.46,25.13,25.40]},{ x:'01/10/2023',y:[25.20,25.21,25.10,25.13]},{ x:'01/11/2023',y:[25.38,25.41,25.37,25.41]},{ x:'01/12/2023',y:[25.46,25.50,25.43,25.48]},{ x:'01/13/2023',y:[25.54,25.55,25.40,25.40]},{ x:'01/16/2023',y:[25.33,25.33,25.21,25.23]},{ x:'01/17/2023',y:[25.44,25.47,25.40,25.40]},{ x:'01/30/2023',y:[26.07,26.47,26.07,26.40]},{ x:'01/31/2023',y:[26.48,26.50,26.39,26.42]},{ x:'02/01/2023',y:[26.43,26.43,26.19,26.25]},{ x:'02/02/2023',y:[26.20,26.20,26.13,26.16]},{ x:'02/03/2023',y:[26.17,26.18,26.09,26.09]},{ x:'02/06/2023',y:[26.30,26.45,26.30,26.38]},{ x:'02/07/2023',y:[26.48,26.50,26.41,26.41]},{ x:'02/08/2023',y:[26.41,26.46,26.39,26.45]},{ x:'02/09/2023',y:[26.40,26.42,26.32,26.41]},{ x:'02/10/2023',y:[26.49,26.65,26.49,26.53]},{ x:'02/13/2023',y:[26.24,26.40,26.24,26.38]},{ x:'02/14/2023',y:[26.55,26.60,26.49,26.55]},{ x:'02/15/2023',y:[26.54,26.54,26.37,26.40]},{ x:'02/16/2023',y:[26.60,26.76,26.60,26.70]},{ x:'02/17/2023',y:[26.50,26.57,26.49,26.56]},{ x:'02/20/2023',y:[26.65,26.67,26.62,26.64]},{ x:'02/21/2023',y:[26.60,26.69,26.60,26.69]},{ x:'02/22/2023',y:[26.19,26.28,26.19,26.25]},{ x:'02/23/2023',y:[26.26,26.31,26.25,26.30]},{ x:'02/24/2023',y:[26.35,26.47,26.35,26.45]},{ x:'03/01/2023',y:[26.48,26.64,26.46,26.64]},{ x:'03/02/2023',y:[26.54,26.54,26.46,26.48]},{ x:'03/03/2023',y:[26.80,26.87,26.79,26.86]},{ x:'03/06/2023',y:[27.03,27.15,27.03,27.07]},{ x:'03/07/2023',y:[27.15,27.23,27.15,27.17]},{ x:'03/08/2023',y:[27.25,27.30,27.25,27.30]},{ x:'03/09/2023',y:[27.52,27.58,27.52,27.56]},{ x:'03/10/2023',y:[27.25,27.25,27.05,27.07]},{ x:'03/13/2023',y:[26.51,26.60,26.48,26.55]},{ x:'03/14/2023',y:[25.77,25.96,25.74,25.86]},{ x:'03/15/2023',y:[26.13,26.22,26.13,26.16]},{ x:'03/16/2023',y:[25.73,25.73,25.63,25.72]},{ x:'03/17/2023',y:[25.94,26.04,25.92,26.04]},{ x:'03/20/2023',y:[26.03,26.03,25.75,25.75]},{ x:'03/21/2023',y:[25.95,25.95,25.87,25.87]},{ x:'03/22/2023',y:[26.14,26.20,26.11,26.18]},{ x:'03/23/2023',y:[26.01,26.09,25.99,26.09]},{ x:'03/24/2023',y:[26.02,26.05,25.92,26.05]},{ x:'03/27/2023',y:[26.11,26.19,26.09,26.15]},{ x:'03/28/2023',y:[26.14,26.14,26.08,26.13]},{ x:'03/29/2023',y:[26.30,26.41,26.30,26.41]},{ x:'03/30/2023',y:[26.64,26.67,26.64,26.64]},{ x:'03/31/2023',y:[26.94,27.05,26.94,27.05]},{ x:'04/06/2023',y:[26.41,26.47,26.37,26.37]},{ x:'04/07/2023',y:[26.49,26.49,26.40,26.42]},{ x:'04/10/2023',y:[26.53,26.57,26.51,26.56]},{ x:'04/11/2023',y:[26.67,26.84,26.67,26.80]},{ x:'04/12/2023',y:[26.97,27.00,26.97,26.98]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00645 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());