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:'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]},{ x:'05/23/2023',y:[33.57,33.57,33.53,33.55]},{ x:'05/24/2023',y:[33.66,33.66,33.63,33.63]},{ x:'05/25/2023',y:[33.59,33.59,33.54,33.54]},{ x:'05/26/2023',y:[33.43,33.43,33.41,33.41]},{ x:'05/29/2023',y:[33.40,33.40,33.37,33.38]},{ x:'05/30/2023',y:[33.48,33.49,33.48,33.49]},{ x:'05/31/2023',y:[33.61,33.72,33.61,33.72]},{ x:'06/01/2023',y:[33.73,33.74,33.73,33.74]},{ x:'06/02/2023',y:[33.69,33.69,33.68,33.68]},{ x:'06/05/2023',y:[33.62,33.62,33.61,33.61]},{ x:'06/06/2023',y:[33.65,33.66,33.65,33.66]},{ x:'06/07/2023',y:[33.72,33.73,33.72,33.73]},{ x:'06/08/2023',y:[33.54,33.56,33.54,33.56]},{ x:'06/09/2023',y:[33.57,33.58,33.56,33.57]},{ x:'06/12/2023',y:[33.61,33.62,33.61,33.62]},{ x:'06/13/2023',y:[33.71,33.71,33.66,33.66]},{ x:'06/14/2023',y:[33.60,33.60,33.58,33.58]},{ x:'06/15/2023',y:[33.64,33.64,33.59,33.59]},{ x:'06/16/2023',y:[33.67,33.72,33.67,33.71]},{ x:'06/19/2023',y:[33.86,33.86,33.86,33.86]},{ x:'06/20/2023',y:[33.81,33.84,33.81,33.84]},{ x:'06/21/2023',y:[34.05,34.10,34.05,34.07]},{ x:'06/26/2023',y:[34.27,34.29,34.27,34.29]} ] }], 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());