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/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]},{ x:'02/20/2023',y:[32.75,32.77,32.74,32.74]},{ x:'02/21/2023',y:[32.82,32.86,32.82,32.86]},{ x:'02/22/2023',y:[32.61,32.62,32.61,32.62]},{ x:'02/23/2023',y:[32.61,32.62,32.55,32.55]},{ x:'02/24/2023',y:[32.79,32.87,32.79,32.87]},{ x:'03/01/2023',y:[33.10,33.11,33.09,33.09]},{ x:'03/02/2023',y:[33.00,33.02,33.00,33.02]},{ x:'03/03/2023',y:[32.85,32.86,32.82,32.86]},{ x:'03/06/2023',y:[33.01,33.04,33.00,33.00]},{ x:'03/07/2023',y:[33.12,33.12,33.09,33.11]},{ x:'03/08/2023',y:[33.21,33.21,33.21,33.21]},{ x:'03/09/2023',y:[33.24,33.24,33.23,33.23]},{ x:'03/10/2023',y:[33.33,33.40,33.33,33.36]},{ x:'03/13/2023',y:[33.42,33.43,33.36,33.40]},{ x:'03/14/2023',y:[33.46,33.46,33.42,33.46]},{ x:'03/15/2023',y:[33.40,33.43,33.40,33.43]} ] }], 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());