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/18/2024',y:[8.38,8.38,8.22,8.25]},{ x:'03/19/2024',y:[8.22,8.23,8.12,8.12]},{ x:'03/20/2024',y:[8.13,8.15,8.03,8.03]},{ x:'03/21/2024',y:[8.05,8.18,8.04,8.17]},{ x:'03/22/2024',y:[8.19,8.19,8.08,8.13]},{ x:'03/25/2024',y:[8.12,8.13,8.08,8.08]},{ x:'03/26/2024',y:[8.10,8.16,8.08,8.08]},{ x:'03/27/2024',y:[8.10,8.14,8.09,8.12]},{ x:'03/28/2024',y:[8.13,8.14,8.05,8.06]},{ x:'03/29/2024',y:[8.07,8.11,8.07,8.07]},{ x:'04/01/2024',y:[8.10,8.16,8.08,8.12]},{ x:'04/02/2024',y:[8.10,8.12,8.06,8.07]},{ x:'04/03/2024',y:[8.07,8.08,8.03,8.03]},{ x:'04/08/2024',y:[8.04,8.06,8.01,8.03]},{ x:'04/09/2024',y:[8.04,8.18,8.04,8.16]},{ x:'04/10/2024',y:[8.37,8.48,8.37,8.39]},{ x:'04/11/2024',y:[8.41,8.42,8.34,8.36]},{ x:'04/12/2024',y:[8.34,8.34,8.24,8.26]},{ x:'04/15/2024',y:[8.23,8.26,8.17,8.19]},{ x:'04/16/2024',y:[8.17,8.18,8.03,8.05]},{ x:'04/17/2024',y:[8.07,8.13,8.05,8.12]},{ x:'04/18/2024',y:[8.11,8.24,8.08,8.22]},{ x:'04/19/2024',y:[8.17,8.22,8.03,8.07]},{ x:'04/22/2024',y:[8.12,8.34,8.12,8.26]},{ x:'04/23/2024',y:[8.29,8.38,8.28,8.37]},{ x:'04/24/2024',y:[8.42,8.44,8.35,8.39]},{ x:'04/25/2024',y:[8.39,8.39,8.29,8.35]},{ x:'04/26/2024',y:[8.32,8.40,8.32,8.35]},{ x:'04/29/2024',y:[8.45,8.80,8.42,8.76]},{ x:'04/30/2024',y:[8.70,8.77,8.61,8.63]},{ x:'05/02/2024',y:[8.57,8.71,8.50,8.66]},{ x:'05/03/2024',y:[8.66,8.85,8.64,8.66]},{ x:'05/06/2024',y:[8.72,9.15,8.70,8.95]},{ x:'05/07/2024',y:[8.98,9.00,8.80,8.84]},{ x:'05/08/2024',y:[8.88,8.96,8.76,8.93]},{ x:'05/09/2024',y:[9.10,9.18,8.86,8.86]},{ x:'05/10/2024',y:[8.88,9.07,8.82,9.07]},{ x:'05/13/2024',y:[9.04,9.06,8.91,8.99]},{ x:'05/14/2024',y:[8.95,8.99,8.90,8.93]},{ x:'05/15/2024',y:[8.99,9.07,8.96,9.03]},{ x:'05/16/2024',y:[9.03,9.08,8.99,9.05]},{ x:'05/17/2024',y:[9.05,9.06,8.97,9.03]},{ x:'05/20/2024',y:[9.06,9.09,9.02,9.04]},{ x:'05/21/2024',y:[9.04,9.04,8.88,8.92]},{ x:'05/22/2024',y:[8.96,9.00,8.94,8.95]},{ x:'05/23/2024',y:[8.91,8.94,8.80,8.81]},{ x:'05/24/2024',y:[8.75,8.84,8.68,8.78]},{ x:'06/11/2024',y:[9.80,9.81,9.55,9.60]},{ x:'06/12/2024',y:[9.37,9.48,9.24,9.42]},{ x:'06/13/2024',y:[9.42,9.48,9.28,9.28]},{ x:'06/14/2024',y:[9.29,9.43,9.28,9.43]},{ x:'06/17/2024',y:[9.43,9.50,9.35,9.42]},{ x:'06/18/2024',y:[9.40,9.67,9.35,9.65]},{ x:'06/19/2024',y:[9.71,9.80,9.60,9.71]},{ x:'06/20/2024',y:[9.79,9.79,9.64,9.65]},{ x:'06/21/2024',y:[9.64,9.98,9.57,9.82]},{ x:'06/24/2024',y:[9.94,9.94,9.74,9.80]},{ x:'06/25/2024',y:[9.79,9.87,9.70,9.80]},{ x:'06/26/2024',y:[9.80,9.82,9.67,9.67]},{ x:'06/27/2024',y:[9.60,9.66,9.58,9.62]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2888 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());