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:[26.97,26.97,26.80,26.85]},{ x:'11/28/2022',y:[26.70,26.72,26.57,26.66]},{ x:'11/29/2022',y:[26.60,26.62,26.52,26.57]},{ x:'11/30/2022',y:[26.53,26.53,26.38,26.43]},{ x:'12/01/2022',y:[26.51,26.51,26.45,26.46]},{ x:'12/02/2022',y:[26.04,26.08,25.94,26.06]},{ x:'12/05/2022',y:[25.94,25.98,25.88,25.92]},{ x:'12/06/2022',y:[26.02,26.08,25.99,26.00]},{ x:'12/07/2022',y:[26.08,26.14,26.08,26.14]},{ x:'12/08/2022',y:[25.80,25.94,25.77,25.94]},{ x:'12/09/2022',y:[26.25,26.25,26.18,26.22]},{ x:'12/12/2022',y:[26.16,26.16,26.11,26.12]},{ x:'12/13/2022',y:[26.23,26.27,26.21,26.21]},{ x:'12/14/2022',y:[26.26,26.35,26.26,26.34]},{ x:'12/15/2022',y:[26.37,26.41,26.30,26.32]},{ x:'12/16/2022',y:[26.17,26.17,26.07,26.07]},{ x:'12/19/2022',y:[25.92,25.92,25.84,25.86]},{ x:'12/20/2022',y:[25.93,25.93,25.23,25.38]},{ x:'12/21/2022',y:[25.26,25.45,25.23,25.24]},{ x:'12/22/2022',y:[25.27,25.45,25.27,25.45]},{ x:'12/23/2022',y:[25.24,25.36,25.24,25.31]},{ x:'12/26/2022',y:[25.34,25.43,25.31,25.43]},{ x:'12/27/2022',y:[25.52,25.58,25.50,25.55]},{ x:'12/28/2022',y:[25.40,25.49,25.40,25.49]},{ x:'12/29/2022',y:[25.23,25.34,25.21,25.32]},{ 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]} ] }], 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());