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:'04/09/2024',y:[24.05,24.06,24.02,24.06]},{ x:'04/10/2024',y:[24.06,24.06,23.98,24.02]},{ x:'04/11/2024',y:[23.39,23.53,23.39,23.53]},{ x:'04/12/2024',y:[23.56,23.59,23.54,23.57]},{ x:'04/15/2024',y:[23.04,23.15,22.99,23.14]},{ x:'04/16/2024',y:[22.69,22.70,22.57,22.68]},{ x:'04/17/2024',y:[22.84,22.89,22.82,22.88]},{ x:'04/18/2024',y:[22.74,22.76,22.70,22.76]},{ x:'04/19/2024',y:[22.53,22.53,22.11,22.41]},{ x:'04/22/2024',y:[23.05,23.12,23.03,23.11]},{ x:'04/23/2024',y:[23.37,23.37,23.30,23.33]},{ x:'04/24/2024',y:[23.63,23.69,23.62,23.69]},{ x:'04/25/2024',y:[23.45,23.49,23.42,23.43]},{ x:'04/26/2024',y:[23.54,23.55,23.12,23.17]},{ x:'04/29/2024',y:[23.39,23.43,23.38,23.41]},{ x:'04/30/2024',y:[23.37,23.37,23.32,23.35]},{ x:'05/02/2024',y:[22.98,23.01,22.96,22.98]},{ x:'05/03/2024',y:[23.42,23.43,23.38,23.39]},{ x:'05/06/2024',y:[23.65,23.68,23.64,23.65]},{ x:'05/07/2024',y:[23.82,23.87,23.81,23.87]},{ x:'05/08/2024',y:[23.89,23.89,23.85,23.87]},{ x:'05/09/2024',y:[24.07,24.10,24.04,24.04]},{ x:'05/10/2024',y:[24.55,24.60,24.55,24.59]},{ x:'05/13/2024',y:[24.65,24.65,24.61,24.63]},{ x:'05/14/2024',y:[24.56,24.56,24.50,24.52]},{ x:'05/15/2024',y:[24.66,24.69,24.62,24.63]},{ x:'05/16/2024',y:[25.10,25.10,25.05,25.09]},{ x:'05/17/2024',y:[24.98,25.02,24.96,24.96]},{ x:'05/20/2024',y:[25.20,25.22,25.19,25.19]},{ x:'05/21/2024',y:[24.91,24.97,24.91,24.96]},{ x:'05/22/2024',y:[25.00,25.03,25.00,25.02]},{ x:'05/23/2024',y:[24.65,24.81,24.64,24.78]},{ x:'05/24/2024',y:[23.97,24.03,23.97,24.01]},{ x:'06/11/2024',y:[23.65,23.68,23.58,23.65]},{ x:'06/12/2024',y:[23.55,23.60,23.54,23.60]},{ x:'06/13/2024',y:[23.48,23.48,23.42,23.44]},{ x:'06/14/2024',y:[23.38,23.41,23.37,23.41]},{ x:'06/17/2024',y:[23.36,23.36,23.25,23.31]},{ x:'06/18/2024',y:[23.61,23.65,23.59,23.65]},{ x:'06/19/2024',y:[23.63,23.63,23.58,23.61]},{ x:'06/20/2024',y:[23.56,23.62,23.55,23.62]},{ x:'06/21/2024',y:[23.90,23.96,23.90,23.96]},{ x:'06/24/2024',y:[23.93,23.97,23.83,23.87]},{ x:'06/25/2024',y:[24.30,24.39,24.29,24.36]},{ x:'06/26/2024',y:[23.89,23.95,23.88,23.95]},{ x:'06/27/2024',y:[23.80,23.87,23.79,23.86]},{ x:'06/28/2024',y:[23.93,23.99,23.92,23.94]},{ x:'07/01/2024',y:[23.96,23.96,23.90,23.92]},{ x:'07/02/2024',y:[23.86,23.89,23.85,23.87]},{ x:'07/03/2024',y:[24.16,24.16,24.11,24.11]},{ x:'07/04/2024',y:[24.12,24.12,24.08,24.10]},{ x:'07/05/2024',y:[24.09,24.12,24.08,24.12]},{ x:'07/12/2024',y:[24.57,24.66,24.57,24.65]},{ x:'07/15/2024',y:[24.91,24.99,24.91,24.99]},{ x:'07/16/2024',y:[25.20,25.27,25.20,25.25]},{ x:'07/17/2024',y:[26.13,26.19,26.12,26.16]},{ x:'07/18/2024',y:[26.48,26.55,26.48,26.50]},{ x:'07/19/2024',y:[25.70,25.83,25.70,25.79]},{ x:'07/22/2024',y:[25.35,25.38,25.26,25.32]},{ x:'07/23/2024',y:[25.42,25.44,25.38,25.42]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00852l 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());