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:[25.68,25.82,25.43,25.64]},{ x:'03/18/2024',y:[25.06,25.14,24.80,25.14]},{ x:'03/19/2024',y:[25.12,25.81,25.08,25.71]},{ x:'03/20/2024',y:[25.81,26.22,25.60,25.62]},{ x:'03/21/2024',y:[25.93,25.94,25.50,25.62]},{ x:'03/22/2024',y:[25.61,25.62,25.01,25.13]},{ x:'03/25/2024',y:[25.13,25.33,24.90,24.95]},{ x:'03/26/2024',y:[24.91,25.10,24.40,24.74]},{ x:'03/27/2024',y:[24.74,25.37,24.72,25.26]},{ x:'03/28/2024',y:[25.35,25.71,25.23,25.46]},{ x:'03/29/2024',y:[25.52,25.58,25.13,25.37]},{ x:'04/01/2024',y:[25.40,25.48,25.11,25.12]},{ x:'04/02/2024',y:[25.12,25.43,25.12,25.41]},{ x:'04/03/2024',y:[25.30,25.43,25.13,25.36]},{ x:'04/08/2024',y:[25.36,25.37,25.18,25.29]},{ x:'04/09/2024',y:[25.29,25.51,25.29,25.51]},{ x:'04/10/2024',y:[25.59,25.59,25.42,25.49]},{ x:'04/11/2024',y:[25.43,25.43,25.24,25.38]},{ x:'04/12/2024',y:[25.38,25.51,25.30,25.42]},{ x:'04/15/2024',y:[25.32,25.39,25.18,25.31]},{ x:'04/16/2024',y:[25.20,25.20,24.65,24.79]},{ x:'04/17/2024',y:[24.79,25.07,24.79,25.03]},{ x:'04/18/2024',y:[24.97,25.17,24.90,25.11]},{ x:'04/19/2024',y:[24.96,24.96,24.26,24.64]},{ x:'04/22/2024',y:[24.63,24.71,24.45,24.55]},{ x:'04/23/2024',y:[24.70,24.91,24.56,24.72]},{ x:'04/24/2024',y:[24.99,25.30,24.95,25.26]},{ x:'04/25/2024',y:[25.00,25.22,25.00,25.13]},{ x:'04/26/2024',y:[25.13,25.31,25.10,25.20]},{ x:'04/29/2024',y:[25.50,25.75,25.45,25.73]},{ x:'04/30/2024',y:[25.86,25.91,25.76,25.78]},{ x:'05/02/2024',y:[25.78,25.93,25.68,25.90]},{ x:'05/03/2024',y:[26.08,26.22,25.94,25.96]},{ x:'05/06/2024',y:[26.23,26.51,26.22,26.46]},{ x:'05/07/2024',y:[26.61,26.66,26.41,26.50]},{ x:'05/08/2024',y:[26.40,26.55,26.24,26.51]},{ x:'05/09/2024',y:[26.50,26.50,26.18,26.23]},{ x:'05/10/2024',y:[26.26,26.35,26.10,26.33]},{ x:'05/13/2024',y:[26.40,26.40,26.10,26.17]},{ x:'05/14/2024',y:[26.18,26.25,26.08,26.22]},{ x:'05/15/2024',y:[26.24,26.42,26.23,26.24]},{ x:'05/16/2024',y:[26.35,26.59,26.35,26.49]},{ x:'05/17/2024',y:[26.50,26.51,26.38,26.51]},{ x:'05/20/2024',y:[26.51,26.54,26.27,26.45]},{ x:'05/21/2024',y:[26.45,26.45,26.28,26.37]},{ x:'05/22/2024',y:[26.40,26.60,26.40,26.60]},{ x:'05/23/2024',y:[26.60,26.65,26.42,26.61]},{ x:'05/24/2024',y:[26.55,26.61,26.40,26.59]},{ x:'06/11/2024',y:[27.10,27.33,27.01,27.30]},{ x:'06/12/2024',y:[27.40,27.65,27.31,27.65]},{ x:'06/13/2024',y:[27.85,28.04,27.76,27.88]},{ x:'06/14/2024',y:[27.83,27.98,27.75,27.96]},{ x:'06/17/2024',y:[27.96,28.15,27.90,28.12]},{ x:'06/18/2024',y:[28.23,28.29,28.11,28.28]},{ x:'06/19/2024',y:[27.82,28.04,27.81,27.82]},{ x:'06/20/2024',y:[27.82,27.84,27.68,27.82]},{ x:'06/21/2024',y:[27.68,27.80,27.60,27.63]},{ x:'06/24/2024',y:[27.38,27.38,27.16,27.24]},{ x:'06/25/2024',y:[27.14,27.40,26.87,27.40]},{ x:'06/26/2024',y:[27.42,27.62,27.39,27.51]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00915 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());