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/24/2024',y:[20.27,20.79,20.26,20.77]},{ x:'04/25/2024',y:[20.43,20.58,20.34,20.37]},{ x:'04/26/2024',y:[20.70,20.86,20.65,20.72]},{ x:'04/29/2024',y:[20.89,21.18,20.89,21.04]},{ x:'04/30/2024',y:[21.04,21.17,21.01,21.01]},{ x:'05/02/2024',y:[20.80,20.86,20.67,20.82]},{ x:'05/03/2024',y:[21.18,21.22,20.90,20.94]},{ x:'05/06/2024',y:[21.30,21.42,21.24,21.36]},{ x:'05/07/2024',y:[21.50,21.53,21.31,21.47]},{ x:'05/08/2024',y:[21.47,21.67,21.43,21.65]},{ x:'05/09/2024',y:[21.66,21.79,21.62,21.70]},{ x:'05/10/2024',y:[21.72,21.80,21.50,21.66]},{ x:'05/13/2024',y:[21.82,21.89,21.71,21.78]},{ x:'05/14/2024',y:[21.78,22.02,21.74,22.01]},{ x:'05/15/2024',y:[22.06,22.32,22.05,22.15]},{ x:'05/16/2024',y:[22.50,22.63,22.28,22.31]},{ x:'05/17/2024',y:[22.30,22.35,22.20,22.25]},{ x:'05/20/2024',y:[22.25,22.33,22.04,22.20]},{ x:'05/21/2024',y:[22.20,22.29,22.08,22.19]},{ x:'05/22/2024',y:[22.22,22.61,22.22,22.60]},{ x:'05/23/2024',y:[22.80,22.90,22.62,22.86]},{ x:'05/24/2024',y:[22.75,22.86,22.63,22.84]},{ x:'06/11/2024',y:[23.28,23.35,23.16,23.22]},{ x:'06/12/2024',y:[23.25,23.70,23.25,23.70]},{ x:'06/13/2024',y:[24.00,24.35,23.98,24.20]},{ x:'06/14/2024',y:[24.20,24.43,24.10,24.43]},{ x:'06/17/2024',y:[24.43,24.54,24.33,24.45]},{ x:'06/18/2024',y:[24.70,24.81,24.63,24.79]},{ x:'06/19/2024',y:[24.97,25.68,24.96,25.62]},{ x:'06/20/2024',y:[25.64,26.03,25.60,26.03]},{ x:'06/21/2024',y:[25.74,25.99,25.59,25.83]},{ x:'06/24/2024',y:[25.63,25.68,25.16,25.21]},{ x:'06/25/2024',y:[24.96,25.20,24.64,25.18]},{ x:'06/26/2024',y:[25.38,25.54,25.26,25.36]},{ x:'06/27/2024',y:[25.10,25.34,25.09,25.30]},{ x:'06/28/2024',y:[25.36,25.65,25.32,25.56]},{ x:'07/01/2024',y:[25.58,25.79,25.55,25.58]},{ x:'07/02/2024',y:[25.55,25.58,25.21,25.34]},{ x:'07/03/2024',y:[25.57,25.66,25.45,25.50]},{ x:'07/04/2024',y:[25.92,26.16,25.92,26.10]},{ x:'07/05/2024',y:[26.12,26.19,26.05,26.05]},{ x:'07/12/2024',y:[26.81,26.90,26.45,26.50]},{ x:'07/15/2024',y:[26.62,26.74,26.47,26.53]},{ x:'07/16/2024',y:[26.60,26.90,26.48,26.60]},{ x:'07/17/2024',y:[26.55,26.65,26.25,26.31]},{ x:'07/18/2024',y:[25.44,25.79,25.41,25.59]},{ x:'07/19/2024',y:[25.40,25.46,25.13,25.13]},{ x:'07/22/2024',y:[25.00,25.05,24.10,24.29]},{ x:'07/23/2024',y:[24.70,24.95,24.66,24.95]},{ x:'07/26/2024',y:[23.91,24.18,23.78,24.11]},{ x:'07/29/2024',y:[24.46,24.54,24.11,24.13]},{ x:'07/30/2024',y:[24.00,24.38,23.78,24.34]},{ x:'07/31/2024',y:[24.11,24.44,24.00,24.31]},{ x:'08/01/2024',y:[24.87,24.91,24.61,24.74]},{ x:'08/02/2024',y:[23.92,23.99,23.37,23.40]},{ x:'08/05/2024',y:[22.07,22.14,21.15,21.18]},{ x:'08/06/2024',y:[21.85,22.55,21.23,22.16]},{ x:'08/07/2024',y:[22.47,23.16,22.38,23.01]},{ x:'08/08/2024',y:[22.59,22.78,22.33,22.50]},{ x:'08/09/2024',y:[23.22,23.29,22.96,23.08]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00881 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());