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:'01/30/2023',y:[33.22,33.22,33.03,33.06]},{ x:'01/31/2023',y:[33.19,33.26,33.19,33.26]},{ x:'02/01/2023',y:[33.01,33.01,33.00,33.00]},{ x:'02/02/2023',y:[32.97,33.04,32.97,33.04]},{ x:'02/03/2023',y:[33.27,33.29,33.25,33.29]},{ x:'02/06/2023',y:[32.98,32.98,32.98,32.98]},{ x:'02/07/2023',y:[32.95,32.95,32.95,32.95]},{ x:'02/08/2023',y:[32.80,32.80,32.80,32.80]},{ x:'02/09/2023',y:[32.92,32.92,32.92,32.92]},{ x:'02/10/2023',y:[32.78,32.78,32.64,32.64]},{ x:'02/13/2023',y:[32.53,32.53,32.47,32.47]},{ x:'02/14/2023',y:[32.61,32.64,32.61,32.64]},{ x:'02/15/2023',y:[32.46,32.53,32.46,32.53]},{ x:'02/16/2023',y:[32.34,32.34,32.25,32.28]},{ x:'02/17/2023',y:[31.99,31.99,31.85,31.90]},{ x:'02/20/2023',y:[32.01,32.01,32.01,32.01]},{ x:'02/21/2023',y:[32.02,32.02,31.96,31.96]},{ x:'02/22/2023',y:[31.83,31.83,31.65,31.72]},{ x:'02/23/2023',y:[31.65,31.66,31.65,31.66]},{ x:'02/24/2023',y:[31.93,31.93,31.93,31.93]},{ x:'03/01/2023',y:[31.88,31.89,31.88,31.89]},{ x:'03/02/2023',y:[31.42,31.50,31.42,31.50]},{ x:'03/03/2023',y:[31.50,31.50,31.50,31.50]},{ x:'03/06/2023',y:[31.90,31.90,31.90,31.90]},{ x:'03/07/2023',y:[31.90,31.90,31.90,31.90]},{ x:'03/08/2023',y:[31.93,31.93,31.93,31.93]},{ x:'03/09/2023',y:[31.94,31.94,31.93,31.93]},{ x:'03/10/2023',y:[32.16,32.32,32.16,32.28]},{ x:'03/13/2023',y:[32.07,32.13,32.07,32.08]},{ x:'03/14/2023',y:[31.84,31.93,31.81,31.93]},{ x:'03/15/2023',y:[31.59,31.74,31.59,31.74]},{ x:'03/16/2023',y:[32.00,32.00,31.96,32.00]},{ x:'03/17/2023',y:[31.86,31.89,31.86,31.89]},{ x:'03/20/2023',y:[31.54,31.82,31.54,31.82]},{ x:'03/21/2023',y:[31.94,31.94,31.90,31.90]},{ x:'03/22/2023',y:[31.98,31.98,31.98,31.98]},{ x:'03/23/2023',y:[32.00,32.00,31.96,32.00]},{ x:'03/24/2023',y:[32.07,32.07,32.02,32.07]},{ x:'03/27/2023',y:[32.06,32.06,32.06,32.06]},{ x:'03/28/2023',y:[31.70,31.70,31.70,31.70]},{ x:'03/29/2023',y:[31.61,31.61,31.61,31.61]},{ x:'03/30/2023',y:[31.84,31.84,31.78,31.78]},{ x:'03/31/2023',y:[31.92,31.92,31.92,31.92]},{ x:'04/06/2023',y:[32.79,32.79,32.71,32.71]},{ x:'04/07/2023',y:[32.66,32.66,32.65,32.65]},{ x:'04/10/2023',y:[32.52,32.52,32.52,32.52]},{ x:'04/11/2023',y:[32.44,32.44,32.44,32.44]},{ x:'04/12/2023',y:[32.46,32.49,32.46,32.49]},{ x:'04/13/2023',y:[32.53,32.53,32.53,32.53]},{ x:'04/14/2023',y:[32.38,32.38,32.38,32.38]},{ x:'04/17/2023',y:[32.39,32.39,32.39,32.39]},{ x:'04/18/2023',y:[32.28,32.28,32.24,32.24]},{ x:'04/19/2023',y:[32.45,32.45,32.45,32.45]},{ x:'04/20/2023',y:[32.53,32.53,32.53,32.53]},{ x:'04/21/2023',y:[32.53,32.64,32.53,32.64]},{ x:'04/24/2023',y:[32.54,32.61,32.54,32.61]},{ x:'04/25/2023',y:[32.36,32.40,32.36,32.40]},{ x:'04/26/2023',y:[32.52,32.57,32.52,32.57]},{ x:'04/27/2023',y:[0.00,0.00,0.00,0.00]},{ x:'04/28/2023',y:[32.28,32.28,32.12,32.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00842b 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());