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/28/2024',y:[5.39,5.48,5.39,5.47]},{ x:'03/29/2024',y:[5.64,5.64,5.33,5.45]},{ x:'04/01/2024',y:[5.49,5.50,5.36,5.46]},{ x:'04/02/2024',y:[5.49,5.49,5.37,5.39]},{ x:'04/03/2024',y:[5.49,5.49,5.30,5.35]},{ x:'04/08/2024',y:[5.34,5.34,5.15,5.19]},{ x:'04/09/2024',y:[5.43,5.43,5.10,5.12]},{ x:'04/10/2024',y:[5.12,5.23,5.10,5.12]},{ x:'04/11/2024',y:[5.22,5.30,5.14,5.20]},{ x:'04/12/2024',y:[5.34,5.42,5.21,5.35]},{ x:'04/15/2024',y:[5.48,5.50,5.19,5.22]},{ x:'04/16/2024',y:[5.21,5.30,4.85,5.15]},{ x:'04/17/2024',y:[5.36,5.36,5.18,5.25]},{ x:'04/18/2024',y:[4.93,5.20,4.93,5.12]},{ x:'04/19/2024',y:[5.11,5.14,5.08,5.08]},{ x:'04/22/2024',y:[5.08,5.18,5.00,5.00]},{ x:'04/23/2024',y:[5.00,5.34,5.00,5.19]},{ x:'04/24/2024',y:[5.13,5.25,5.12,5.18]},{ x:'04/25/2024',y:[5.18,5.30,5.17,5.19]},{ x:'04/26/2024',y:[5.19,5.19,5.15,5.15]},{ x:'04/29/2024',y:[5.20,5.30,5.05,5.15]},{ x:'04/30/2024',y:[5.15,5.15,5.07,5.10]},{ x:'05/02/2024',y:[5.14,5.29,5.07,5.10]},{ x:'05/03/2024',y:[5.19,5.19,5.06,5.17]},{ x:'05/06/2024',y:[5.12,5.17,4.90,5.05]},{ x:'05/07/2024',y:[4.97,5.00,4.90,5.00]},{ x:'05/08/2024',y:[5.00,5.01,4.92,4.99]},{ x:'05/09/2024',y:[4.92,5.10,4.92,5.05]},{ x:'05/10/2024',y:[5.04,5.09,4.98,5.03]},{ x:'05/13/2024',y:[4.91,5.04,4.90,5.01]},{ x:'05/14/2024',y:[4.92,5.00,4.75,4.99]},{ x:'05/15/2024',y:[4.96,4.96,4.80,4.87]},{ x:'05/16/2024',y:[5.08,5.08,4.87,4.97]},{ x:'05/17/2024',y:[4.94,4.99,4.88,4.98]},{ x:'05/20/2024',y:[4.98,4.98,4.92,4.95]},{ x:'05/21/2024',y:[5.00,5.00,4.95,5.00]},{ x:'05/22/2024',y:[5.02,5.02,4.80,5.00]},{ x:'05/23/2024',y:[5.05,5.05,4.99,5.04]},{ x:'05/24/2024',y:[5.05,5.50,5.00,5.50]},{ x:'06/11/2024',y:[7.15,7.15,6.90,6.95]},{ x:'06/12/2024',y:[7.05,7.05,6.91,6.96]},{ x:'06/13/2024',y:[6.96,6.96,6.90,6.94]},{ x:'06/14/2024',y:[6.80,6.99,6.80,6.98]},{ x:'06/17/2024',y:[6.60,6.90,6.60,6.85]},{ x:'06/18/2024',y:[6.80,6.85,6.80,6.80]},{ x:'06/19/2024',y:[6.60,6.80,6.60,6.80]},{ x:'06/20/2024',y:[6.81,6.81,6.75,6.80]},{ x:'06/21/2024',y:[6.70,6.79,6.63,6.79]},{ x:'06/24/2024',y:[6.77,6.95,6.68,6.94]},{ x:'06/25/2024',y:[6.94,6.94,6.88,6.93]},{ x:'06/26/2024',y:[6.93,6.93,6.88,6.91]},{ x:'06/27/2024',y:[6.94,6.94,6.70,6.88]},{ x:'06/28/2024',y:[6.85,7.10,6.79,7.10]},{ x:'07/01/2024',y:[7.19,7.19,6.50,7.00]},{ x:'07/02/2024',y:[6.87,7.10,6.80,7.10]},{ x:'07/03/2024',y:[7.00,7.06,6.99,7.05]},{ x:'07/04/2024',y:[7.05,7.09,7.05,7.09]},{ x:'07/05/2024',y:[7.09,7.09,7.00,7.03]},{ x:'07/12/2024',y:[7.19,7.19,7.17,7.19]},{ x:'07/15/2024',y:[7.50,7.53,7.50,7.51]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3494 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());