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/15/2024',y:[26.00,26.02,25.64,25.83]},{ x:'03/18/2024',y:[25.47,25.47,25.15,25.46]},{ x:'03/19/2024',y:[25.46,26.25,25.40,26.16]},{ x:'03/20/2024',y:[26.52,27.01,26.09,26.13]},{ x:'03/21/2024',y:[26.59,26.59,25.90,25.96]},{ x:'03/22/2024',y:[25.99,25.99,25.30,25.40]},{ x:'03/25/2024',y:[25.40,25.61,25.20,25.30]},{ x:'03/26/2024',y:[25.36,25.48,24.60,24.99]},{ x:'03/27/2024',y:[25.06,25.64,24.92,25.51]},{ x:'03/28/2024',y:[25.66,25.78,25.22,25.32]},{ x:'03/29/2024',y:[25.34,25.45,25.05,25.26]},{ x:'04/01/2024',y:[25.33,25.38,25.02,25.04]},{ x:'04/02/2024',y:[25.04,25.23,25.04,25.21]},{ x:'04/03/2024',y:[25.10,25.33,25.02,25.19]},{ x:'04/08/2024',y:[25.23,25.26,25.02,25.17]},{ x:'04/09/2024',y:[25.17,25.24,25.12,25.20]},{ x:'04/10/2024',y:[25.20,25.45,25.20,25.30]},{ x:'04/11/2024',y:[25.21,25.31,25.10,25.25]},{ x:'04/12/2024',y:[25.30,25.41,25.26,25.35]},{ x:'04/15/2024',y:[25.29,25.30,25.11,25.22]},{ x:'04/16/2024',y:[25.03,25.05,24.50,24.54]},{ x:'04/17/2024',y:[24.54,24.84,24.54,24.80]},{ x:'04/18/2024',y:[24.73,24.80,24.58,24.73]},{ x:'04/19/2024',y:[24.55,24.55,23.80,24.15]},{ x:'04/22/2024',y:[24.11,24.15,23.66,23.67]},{ x:'04/23/2024',y:[23.86,23.99,23.67,23.74]},{ x:'04/24/2024',y:[23.99,24.51,23.98,24.46]},{ x:'04/25/2024',y:[24.28,24.45,24.26,24.28]},{ x:'04/26/2024',y:[24.35,24.50,24.35,24.45]},{ x:'04/29/2024',y:[24.75,24.89,24.70,24.82]},{ x:'04/30/2024',y:[24.87,24.87,24.69,24.72]},{ x:'05/02/2024',y:[24.70,24.70,24.53,24.57]},{ x:'05/03/2024',y:[24.86,24.86,24.57,24.57]},{ x:'05/06/2024',y:[24.80,24.85,24.70,24.73]},{ x:'05/07/2024',y:[24.81,24.89,24.68,24.77]},{ x:'05/08/2024',y:[24.73,24.80,24.62,24.73]},{ x:'05/09/2024',y:[24.74,24.86,24.73,24.74]},{ x:'05/10/2024',y:[24.77,24.90,24.74,24.80]},{ x:'05/13/2024',y:[24.97,25.16,24.82,24.88]},{ x:'05/14/2024',y:[24.92,25.16,24.90,25.05]},{ x:'05/15/2024',y:[25.06,25.10,24.90,24.92]},{ x:'05/16/2024',y:[25.03,25.28,25.03,25.28]},{ x:'05/17/2024',y:[25.35,25.35,25.12,25.20]},{ x:'05/20/2024',y:[25.30,25.42,25.13,25.34]},{ x:'05/21/2024',y:[25.34,25.38,25.21,25.25]},{ x:'05/22/2024',y:[25.30,25.49,25.29,25.47]},{ x:'05/23/2024',y:[25.50,25.59,25.35,25.49]},{ x:'05/24/2024',y:[25.41,25.59,25.33,25.54]},{ x:'06/11/2024',y:[26.10,26.25,25.96,25.98]},{ x:'06/12/2024',y:[25.99,26.01,25.88,26.01]},{ x:'06/13/2024',y:[26.19,26.44,26.17,26.23]},{ x:'06/14/2024',y:[26.23,26.27,26.20,26.27]},{ x:'06/17/2024',y:[26.30,26.45,26.25,26.40]},{ x:'06/18/2024',y:[26.50,26.70,26.47,26.70]},{ x:'06/19/2024',y:[26.85,27.00,26.84,26.98]},{ x:'06/20/2024',y:[27.01,27.09,27.01,27.08]},{ x:'06/21/2024',y:[27.00,27.00,26.82,26.94]},{ x:'06/24/2024',y:[26.20,26.20,25.88,25.90]},{ x:'06/25/2024',y:[25.85,25.87,25.56,25.72]},{ x:'06/26/2024',y:[25.80,25.95,25.76,25.89]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00919 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());