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/15/2022',y:[32.07,32.11,32.03,32.05]},{ x:'11/16/2022',y:[32.36,32.36,32.30,32.36]},{ x:'11/17/2022',y:[32.51,32.54,32.51,32.53]},{ x:'11/18/2022',y:[32.48,32.58,32.48,32.58]},{ x:'11/21/2022',y:[32.50,32.50,32.49,32.49]},{ x:'11/22/2022',y:[32.40,32.40,32.40,32.40]},{ x:'11/23/2022',y:[32.44,32.51,32.44,32.51]},{ x:'11/24/2022',y:[32.74,32.74,32.70,32.70]},{ x:'11/25/2022',y:[32.70,32.73,32.70,32.72]},{ x:'11/28/2022',y:[33.10,33.22,33.10,33.17]},{ x:'11/29/2022',y:[33.23,33.23,33.18,33.18]},{ x:'11/30/2022',y:[33.25,33.25,33.24,33.24]},{ x:'12/01/2022',y:[33.15,33.15,33.14,33.14]},{ x:'12/02/2022',y:[33.46,33.49,33.46,33.49]},{ x:'12/05/2022',y:[33.46,33.46,33.39,33.39]},{ x:'12/06/2022',y:[33.53,33.62,33.53,33.62]},{ x:'12/07/2022',y:[33.58,33.58,33.57,33.57]},{ x:'12/08/2022',y:[33.58,33.62,33.58,33.60]},{ x:'12/09/2022',y:[33.77,33.80,33.73,33.80]},{ x:'12/12/2022',y:[33.70,33.76,33.69,33.76]},{ x:'12/13/2022',y:[33.58,33.61,33.58,33.61]},{ x:'12/14/2022',y:[33.51,33.51,33.51,33.51]},{ x:'12/15/2022',y:[33.60,33.63,33.60,33.63]},{ x:'12/16/2022',y:[33.82,33.86,33.82,33.86]},{ x:'12/19/2022',y:[33.74,33.75,33.74,33.75]},{ x:'12/20/2022',y:[33.73,33.73,33.44,33.44]},{ x:'12/21/2022',y:[33.43,33.43,33.42,33.42]},{ x:'12/22/2022',y:[33.43,33.46,33.43,33.46]},{ x:'12/23/2022',y:[33.45,33.45,33.42,33.44]},{ x:'12/26/2022',y:[33.40,33.40,33.37,33.37]},{ x:'12/27/2022',y:[33.35,33.35,33.31,33.31]},{ x:'12/28/2022',y:[33.28,33.28,33.26,33.26]},{ x:'12/29/2022',y:[33.27,33.29,33.27,33.28]},{ x:'12/30/2022',y:[33.24,33.25,33.24,33.25]},{ x:'01/03/2023',y:[33.33,33.35,33.31,33.31]},{ x:'01/04/2023',y:[33.19,33.22,33.19,33.22]},{ x:'01/05/2023',y:[33.20,33.21,33.19,33.19]},{ x:'01/06/2023',y:[33.19,33.25,33.19,33.19]},{ x:'01/09/2023',y:[33.20,33.20,33.19,33.19]},{ x:'01/10/2023',y:[33.22,33.29,33.22,33.24]},{ x:'01/11/2023',y:[33.17,33.18,33.17,33.18]},{ x:'01/12/2023',y:[33.36,33.36,33.26,33.31]},{ x:'01/13/2023',y:[33.27,33.39,33.27,33.38]},{ x:'01/16/2023',y:[33.44,33.44,33.41,33.42]},{ x:'01/17/2023',y:[32.99,33.04,32.99,33.02]},{ x:'01/30/2023',y:[33.02,33.50,32.99,33.48]},{ x:'01/31/2023',y:[33.33,33.33,33.26,33.31]},{ x:'02/01/2023',y:[33.25,33.27,33.25,33.26]},{ x:'02/02/2023',y:[33.30,33.31,33.26,33.28]},{ x:'02/03/2023',y:[33.46,33.51,33.46,33.51]},{ x:'02/06/2023',y:[33.52,33.52,33.41,33.43]},{ x:'02/07/2023',y:[33.35,33.35,33.34,33.34]},{ x:'02/08/2023',y:[33.28,33.28,33.28,33.28]},{ x:'02/09/2023',y:[33.33,33.33,33.30,33.30]},{ x:'02/10/2023',y:[33.22,33.24,33.22,33.24]},{ x:'02/13/2023',y:[33.09,33.09,33.01,33.04]},{ x:'02/14/2023',y:[32.96,33.04,32.96,33.04]},{ x:'02/15/2023',y:[33.17,33.19,33.17,33.19]},{ x:'02/16/2023',y:[32.95,32.96,32.95,32.95]},{ x:'02/17/2023',y:[32.84,32.85,32.80,32.84]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00848b 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());