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/14/2022',y:[20.18,20.19,20.08,20.08]},{ x:'11/15/2022',y:[19.94,20.08,19.94,20.07]},{ x:'11/16/2022',y:[19.82,20.03,19.81,20.00]},{ x:'11/17/2022',y:[20.02,20.06,19.95,20.00]},{ x:'11/18/2022',y:[19.95,19.98,19.87,19.91]},{ x:'11/21/2022',y:[20.07,20.10,20.06,20.06]},{ x:'11/22/2022',y:[20.17,20.20,20.14,20.14]},{ x:'11/23/2022',y:[20.58,20.65,20.57,20.65]},{ x:'11/24/2022',y:[20.76,20.77,20.71,20.71]},{ x:'11/25/2022',y:[20.71,20.71,20.66,20.67]},{ x:'11/28/2022',y:[20.69,20.70,20.59,20.59]},{ x:'11/29/2022',y:[20.25,20.33,20.24,20.32]},{ x:'11/30/2022',y:[20.23,20.28,20.22,20.27]},{ x:'12/01/2022',y:[21.04,21.07,20.99,21.05]},{ x:'12/02/2022',y:[20.66,20.73,20.65,20.72]},{ x:'12/05/2022',y:[20.74,20.78,20.73,20.75]},{ x:'12/06/2022',y:[20.26,20.30,20.24,20.24]},{ x:'12/07/2022',y:[19.87,19.91,19.83,19.86]},{ x:'12/08/2022',y:[19.74,19.82,19.65,19.77]},{ x:'12/09/2022',y:[19.99,20.10,19.98,20.07]},{ x:'12/12/2022',y:[19.63,19.69,19.60,19.66]},{ x:'12/13/2022',y:[20.26,20.31,20.24,20.29]},{ x:'12/14/2022',y:[20.46,20.54,20.44,20.52]},{ x:'12/15/2022',y:[20.28,20.30,20.17,20.24]},{ x:'12/16/2022',y:[19.28,19.35,19.23,19.25]},{ x:'12/19/2022',y:[18.96,19.01,18.96,18.98]},{ x:'12/20/2022',y:[18.84,18.88,18.47,18.47]},{ x:'12/21/2022',y:[19.02,19.12,19.01,19.06]},{ x:'12/22/2022',y:[19.49,19.53,19.46,19.51]},{ x:'12/23/2022',y:[18.95,19.12,18.94,19.11]},{ x:'12/26/2022',y:[19.11,19.22,19.10,19.21]},{ x:'12/27/2022',y:[19.34,19.42,19.34,19.39]},{ x:'12/28/2022',y:[19.21,19.30,19.19,19.30]},{ x:'12/29/2022',y:[18.84,18.84,18.78,18.80]},{ x:'12/30/2022',y:[19.17,19.17,19.12,19.15]},{ x:'01/03/2023',y:[19.09,19.15,18.97,19.15]},{ x:'01/04/2023',y:[19.03,19.11,19.03,19.09]},{ x:'01/05/2023',y:[19.18,19.21,19.09,19.20]},{ x:'01/06/2023',y:[18.92,18.99,18.91,18.95]},{ x:'01/09/2023',y:[19.71,19.71,19.64,19.71]},{ x:'01/10/2023',y:[19.37,19.42,19.31,19.38]},{ x:'01/11/2023',y:[19.69,19.70,19.65,19.70]},{ x:'01/12/2023',y:[19.91,19.98,19.91,19.98]},{ x:'01/13/2023',y:[20.19,20.20,20.08,20.09]},{ x:'01/16/2023',y:[20.30,20.33,20.26,20.30]},{ x:'01/17/2023',y:[20.26,20.26,20.17,20.17]},{ x:'01/30/2023',y:[19.78,19.78,19.66,19.69]},{ x:'01/31/2023',y:[19.49,19.50,19.40,19.46]},{ x:'02/01/2023',y:[19.76,19.80,19.75,19.78]},{ x:'02/02/2023',y:[19.80,19.80,19.68,19.73]},{ x:'02/03/2023',y:[19.67,19.74,19.66,19.73]},{ x:'02/06/2023',y:[19.51,19.54,19.47,19.47]},{ x:'02/07/2023',y:[19.66,19.67,19.60,19.61]},{ x:'02/08/2023',y:[19.87,19.92,19.85,19.90]},{ x:'02/09/2023',y:[19.77,19.81,19.74,19.81]},{ x:'02/10/2023',y:[19.38,19.41,19.32,19.36]},{ x:'02/13/2023',y:[19.51,19.52,19.43,19.50]},{ x:'02/14/2023',y:[20.01,20.02,19.98,19.98]},{ x:'02/15/2023',y:[19.79,19.81,19.74,19.75]},{ x:'02/16/2023',y:[19.95,19.99,19.93,19.96]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00852l 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());