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:[23.53,23.63,23.32,23.56]},{ x:'03/18/2024',y:[23.00,23.01,22.85,23.00]},{ x:'03/19/2024',y:[22.98,23.54,22.94,23.51]},{ x:'03/20/2024',y:[23.65,24.03,23.51,23.58]},{ x:'03/21/2024',y:[23.86,23.90,23.63,23.74]},{ x:'03/22/2024',y:[23.74,23.79,23.32,23.45]},{ x:'03/25/2024',y:[23.45,23.54,23.28,23.35]},{ x:'03/26/2024',y:[23.32,23.49,22.80,23.07]},{ x:'03/27/2024',y:[23.05,23.45,23.03,23.39]},{ x:'03/28/2024',y:[23.50,23.67,23.33,23.55]},{ x:'03/29/2024',y:[23.68,23.68,23.40,23.50]},{ x:'04/01/2024',y:[23.55,23.60,23.38,23.38]},{ x:'04/02/2024',y:[23.39,23.58,23.39,23.56]},{ x:'04/03/2024',y:[23.46,23.57,23.32,23.49]},{ x:'04/08/2024',y:[23.49,23.53,23.36,23.51]},{ x:'04/09/2024',y:[23.51,23.62,23.50,23.59]},{ x:'04/10/2024',y:[23.65,23.69,23.59,23.61]},{ x:'04/11/2024',y:[23.55,23.58,23.39,23.56]},{ x:'04/12/2024',y:[23.56,23.64,23.50,23.59]},{ x:'04/15/2024',y:[23.49,23.49,23.32,23.42]},{ x:'04/16/2024',y:[23.20,23.21,22.67,22.87]},{ x:'04/17/2024',y:[22.87,23.11,22.87,23.07]},{ x:'04/18/2024',y:[23.05,23.12,22.92,23.03]},{ x:'04/19/2024',y:[22.93,22.93,22.30,22.65]},{ x:'04/22/2024',y:[22.65,22.74,22.44,22.46]},{ x:'04/23/2024',y:[22.63,22.74,22.46,22.64]},{ x:'04/24/2024',y:[22.87,23.28,22.86,23.24]},{ x:'04/25/2024',y:[23.08,23.18,23.03,23.17]},{ x:'04/26/2024',y:[23.38,23.46,23.30,23.39]},{ x:'04/29/2024',y:[23.67,23.85,23.63,23.79]},{ x:'04/30/2024',y:[23.85,23.85,23.68,23.70]},{ x:'05/02/2024',y:[23.67,23.76,23.56,23.71]},{ x:'05/03/2024',y:[23.85,23.95,23.74,23.75]},{ x:'05/06/2024',y:[23.95,24.15,23.94,24.07]},{ x:'05/07/2024',y:[24.18,24.20,23.96,24.05]},{ x:'05/08/2024',y:[23.95,24.01,23.88,23.93]},{ x:'05/09/2024',y:[23.93,24.01,23.84,23.88]},{ x:'05/10/2024',y:[23.89,24.16,23.89,24.14]},{ x:'05/13/2024',y:[24.24,24.39,24.18,24.22]},{ x:'05/14/2024',y:[24.26,24.52,24.24,24.45]},{ x:'05/15/2024',y:[24.45,24.56,24.32,24.33]},{ x:'05/16/2024',y:[24.46,24.69,24.46,24.64]},{ x:'05/17/2024',y:[24.64,24.78,24.60,24.71]},{ x:'05/20/2024',y:[24.75,24.89,24.58,24.77]},{ x:'05/21/2024',y:[24.76,24.77,24.55,24.66]},{ x:'05/22/2024',y:[24.65,25.02,24.65,25.00]},{ x:'05/23/2024',y:[25.03,25.05,24.81,24.91]},{ x:'05/24/2024',y:[24.85,25.09,24.82,25.07]},{ x:'06/11/2024',y:[25.41,25.46,25.18,25.18]},{ x:'06/12/2024',y:[25.22,25.26,25.12,25.19]},{ x:'06/13/2024',y:[25.36,25.52,25.35,25.45]},{ x:'06/14/2024',y:[25.55,25.70,25.46,25.69]},{ x:'06/17/2024',y:[25.73,25.94,25.70,25.88]},{ x:'06/18/2024',y:[26.00,26.13,26.00,26.12]},{ x:'06/19/2024',y:[25.48,25.63,25.45,25.56]},{ x:'06/20/2024',y:[25.55,25.82,25.54,25.82]},{ x:'06/21/2024',y:[25.70,25.75,25.56,25.69]},{ x:'06/24/2024',y:[25.60,25.60,25.33,25.36]},{ x:'06/25/2024',y:[25.33,25.38,25.05,25.35]},{ x:'06/26/2024',y:[25.43,25.50,25.27,25.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00918 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());