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:[26.32,26.32,26.30,26.30]},{ x:'11/21/2022',y:[26.38,26.38,26.31,26.31]},{ x:'11/22/2022',y:[26.35,26.35,26.31,26.33]},{ x:'11/23/2022',y:[26.66,26.66,26.63,26.64]},{ x:'11/24/2022',y:[26.68,26.80,26.68,26.72]},{ x:'11/25/2022',y:[26.60,26.66,26.59,26.61]},{ x:'11/28/2022',y:[26.58,26.58,26.37,26.37]},{ x:'11/29/2022',y:[26.33,26.33,26.24,26.29]},{ x:'11/30/2022',y:[26.23,26.23,26.21,26.21]},{ x:'12/01/2022',y:[26.91,26.91,26.65,26.68]},{ x:'12/02/2022',y:[26.50,26.55,26.50,26.54]},{ x:'12/05/2022',y:[26.47,26.51,26.46,26.46]},{ x:'12/06/2022',y:[26.06,26.13,26.06,26.11]},{ x:'12/07/2022',y:[26.03,26.04,25.98,25.98]},{ x:'12/08/2022',y:[25.82,25.82,25.75,25.82]},{ x:'12/09/2022',y:[26.10,26.12,26.08,26.10]},{ x:'12/12/2022',y:[25.86,25.86,25.86,25.86]},{ x:'12/13/2022',y:[26.31,26.31,26.14,26.16]},{ x:'12/14/2022',y:[26.34,26.36,26.30,26.35]},{ x:'12/15/2022',y:[26.13,26.13,26.08,26.08]},{ x:'12/16/2022',y:[25.63,25.82,25.63,25.70]},{ x:'12/19/2022',y:[25.59,25.63,25.55,25.55]},{ x:'12/20/2022',y:[25.33,25.36,25.02,25.02]},{ x:'12/21/2022',y:[25.34,25.40,25.34,25.37]},{ x:'12/22/2022',y:[25.58,25.63,25.58,25.61]},{ x:'12/23/2022',y:[25.14,25.24,25.14,25.24]},{ x:'12/26/2022',y:[25.57,25.57,25.55,25.56]},{ x:'12/27/2022',y:[25.56,25.56,25.56,25.56]},{ x:'12/28/2022',y:[25.23,25.23,25.21,25.22]},{ x:'12/29/2022',y:[25.08,25.08,24.93,24.94]},{ x:'12/30/2022',y:[25.18,25.25,25.18,25.25]},{ x:'01/03/2023',y:[25.29,25.35,25.17,25.34]},{ x:'01/04/2023',y:[25.26,25.27,25.24,25.27]},{ x:'01/05/2023',y:[25.56,25.56,25.40,25.50]},{ x:'01/06/2023',y:[25.30,25.49,25.30,25.46]},{ x:'01/09/2023',y:[25.88,25.88,25.80,25.84]},{ x:'01/10/2023',y:[25.79,25.80,25.74,25.75]},{ x:'01/11/2023',y:[25.80,25.91,25.75,25.87]},{ x:'01/12/2023',y:[25.98,26.09,25.98,26.09]},{ x:'01/13/2023',y:[26.24,26.24,26.08,26.11]},{ x:'01/16/2023',y:[26.12,26.35,26.12,26.34]},{ x:'01/17/2023',y:[26.28,26.37,26.28,26.37]},{ x:'01/30/2023',y:[26.37,26.37,25.37,25.40]},{ x:'01/31/2023',y:[25.32,25.35,25.26,25.28]},{ x:'02/01/2023',y:[25.28,25.28,25.07,25.10]},{ x:'02/02/2023',y:[25.16,25.26,25.12,25.24]},{ x:'02/03/2023',y:[25.74,25.74,25.26,25.28]},{ x:'02/06/2023',y:[25.35,25.35,25.20,25.20]},{ x:'02/07/2023',y:[25.21,25.25,25.20,25.23]},{ x:'02/08/2023',y:[25.33,25.46,25.33,25.43]},{ x:'02/09/2023',y:[25.31,25.32,25.26,25.28]},{ x:'02/10/2023',y:[25.06,25.10,25.04,25.06]},{ x:'02/13/2023',y:[25.15,25.15,25.08,25.11]},{ x:'02/14/2023',y:[25.47,25.47,25.43,25.44]},{ x:'02/15/2023',y:[25.43,25.43,25.38,25.40]},{ x:'02/16/2023',y:[25.82,25.82,25.58,25.58]},{ x:'02/17/2023',y:[25.15,25.19,25.15,25.17]},{ x:'02/20/2023',y:[25.60,25.60,25.21,25.23]},{ x:'02/21/2023',y:[25.23,25.23,25.12,25.16]},{ x:'02/22/2023',y:[25.10,25.10,24.94,24.96]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00858 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());