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:'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]},{ x:'03/16/2023',y:[33.43,33.62,33.43,33.62]},{ x:'03/17/2023',y:[33.58,33.60,33.55,33.60]},{ x:'03/20/2023',y:[33.61,33.66,33.61,33.64]},{ x:'03/21/2023',y:[33.61,33.62,33.61,33.62]},{ x:'03/22/2023',y:[33.56,33.58,33.56,33.58]},{ x:'03/23/2023',y:[33.51,33.56,33.48,33.56]},{ x:'03/24/2023',y:[33.63,33.63,33.61,33.63]},{ x:'03/27/2023',y:[33.69,33.73,33.66,33.66]},{ x:'03/28/2023',y:[33.53,33.56,33.53,33.56]},{ x:'03/29/2023',y:[33.37,33.44,33.35,33.44]},{ x:'03/30/2023',y:[33.49,33.49,33.48,33.48]},{ x:'03/31/2023',y:[33.54,33.56,33.54,33.56]},{ x:'04/06/2023',y:[33.85,34.32,33.85,34.32]},{ x:'04/07/2023',y:[34.13,34.13,34.06,34.06]},{ x:'04/10/2023',y:[34.07,34.07,34.07,34.07]},{ x:'04/11/2023',y:[33.98,33.98,33.96,33.97]},{ x:'04/12/2023',y:[34.05,34.09,34.05,34.09]},{ x:'04/13/2023',y:[34.09,34.11,34.09,34.11]},{ x:'04/14/2023',y:[34.09,34.12,34.09,34.10]},{ x:'04/17/2023',y:[34.15,34.15,34.13,34.13]},{ x:'04/18/2023',y:[34.06,34.06,34.01,34.01]},{ x:'04/19/2023',y:[33.93,33.96,33.93,33.96]},{ x:'04/20/2023',y:[34.00,34.01,34.00,34.01]},{ x:'04/21/2023',y:[33.61,33.61,33.60,33.61]},{ x:'04/24/2023',y:[33.61,33.62,33.60,33.60]},{ x:'04/25/2023',y:[33.75,33.76,33.75,33.76]},{ x:'04/26/2023',y:[33.87,33.87,33.85,33.86]},{ x:'04/27/2023',y:[33.92,33.92,33.88,33.88]},{ x:'04/28/2023',y:[33.79,33.84,33.77,33.84]},{ x:'05/02/2023',y:[34.05,34.05,34.00,34.00]},{ x:'05/03/2023',y:[34.00,34.00,34.00,34.00]},{ x:'05/04/2023',y:[34.23,34.24,34.23,34.24]},{ x:'05/05/2023',y:[34.09,34.16,34.09,34.15]},{ x:'05/08/2023',y:[34.23,34.26,34.23,34.26]},{ x:'05/09/2023',y:[34.15,34.15,34.14,34.14]},{ x:'05/10/2023',y:[34.17,34.17,34.16,34.16]},{ x:'05/11/2023',y:[34.19,34.20,34.19,34.19]},{ x:'05/12/2023',y:[34.44,34.45,34.44,34.45]},{ x:'05/15/2023',y:[34.37,34.37,34.35,34.35]},{ x:'05/16/2023',y:[34.33,34.33,34.29,34.29]},{ x:'05/17/2023',y:[34.27,34.27,34.24,34.26]},{ x:'05/18/2023',y:[34.09,34.09,34.07,34.08]},{ x:'05/19/2023',y:[33.88,33.90,33.88,33.90]},{ x:'05/22/2023',y:[33.67,33.67,33.62,33.62]} ] }], 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());