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/13/2024',y:[0.00,0.00,0.00,0.00]},{ x:'03/14/2024',y:[6.53,6.53,6.53,6.53]},{ x:'03/15/2024',y:[6.58,6.58,6.58,6.58]},{ x:'03/18/2024',y:[6.09,6.09,6.08,6.08]},{ x:'03/19/2024',y:[6.18,6.18,5.89,5.89]},{ x:'03/20/2024',y:[5.98,6.47,5.98,6.47]},{ x:'03/21/2024',y:[6.05,7.11,6.05,7.10]},{ x:'03/22/2024',y:[6.83,7.75,6.83,7.16]},{ x:'03/25/2024',y:[7.70,7.70,6.73,6.73]},{ x:'03/26/2024',y:[6.32,7.05,6.32,7.05]},{ x:'03/27/2024',y:[6.58,7.64,6.58,7.64]},{ x:'03/28/2024',y:[6.96,8.08,6.96,6.96]},{ x:'03/29/2024',y:[6.95,7.15,6.72,6.72]},{ x:'04/11/2024',y:[7.13,7.13,7.06,7.06]},{ x:'04/12/2024',y:[6.51,6.65,6.51,6.59]},{ x:'04/15/2024',y:[6.18,6.18,6.18,6.18]},{ x:'04/16/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/17/2024',y:[6.60,6.79,6.60,6.77]},{ x:'04/18/2024',y:[6.40,6.40,6.16,6.16]},{ x:'04/19/2024',y:[6.16,6.16,5.98,5.98]},{ x:'04/22/2024',y:[6.54,6.54,6.54,6.54]},{ x:'04/23/2024',y:[6.95,6.95,6.95,6.95]},{ x:'04/24/2024',y:[6.36,6.36,6.35,6.35]},{ x:'04/25/2024',y:[6.03,6.03,6.03,6.03]},{ x:'04/26/2024',y:[5.81,5.81,5.75,5.76]},{ x:'04/29/2024',y:[5.53,6.25,5.53,6.25]},{ x:'04/30/2024',y:[6.43,6.43,5.96,5.96]},{ x:'05/02/2024',y:[0.00,0.00,0.00,0.00]},{ x:'05/03/2024',y:[5.65,6.40,5.65,6.40]},{ x:'05/06/2024',y:[6.00,6.13,6.00,6.13]},{ x:'05/07/2024',y:[6.13,6.13,5.80,5.80]},{ x:'05/08/2024',y:[5.66,5.66,5.66,5.66]},{ x:'05/09/2024',y:[5.90,6.00,5.90,6.00]},{ x:'05/10/2024',y:[6.15,6.15,5.96,5.96]},{ x:'05/13/2024',y:[6.15,6.45,6.10,6.10]},{ x:'05/14/2024',y:[0.00,0.00,0.00,0.00]},{ x:'05/15/2024',y:[5.89,5.89,5.89,5.89]},{ x:'05/16/2024',y:[5.66,5.70,5.66,5.70]},{ x:'05/17/2024',y:[0.00,0.00,0.00,0.00]},{ x:'05/20/2024',y:[6.26,6.26,6.26,6.26]},{ x:'05/21/2024',y:[6.23,6.23,5.86,5.86]},{ x:'05/22/2024',y:[5.38,6.44,5.38,6.44]},{ x:'05/23/2024',y:[6.04,7.08,6.04,7.08]},{ x:'05/24/2024',y:[7.78,7.78,7.78,7.78]},{ x:'06/11/2024',y:[11.30,11.30,10.45,10.50]},{ x:'06/12/2024',y:[10.25,11.55,10.10,11.55]},{ x:'06/13/2024',y:[12.00,12.70,12.00,12.60]},{ x:'06/14/2024',y:[12.55,12.55,12.00,12.00]},{ x:'06/17/2024',y:[11.90,13.20,11.55,13.20]},{ x:'06/18/2024',y:[13.20,13.20,12.40,12.65]},{ x:'06/19/2024',y:[12.80,12.80,12.05,12.40]},{ x:'06/20/2024',y:[12.40,13.00,11.80,11.80]},{ x:'06/21/2024',y:[10.85,12.10,10.85,11.55]},{ x:'06/24/2024',y:[10.85,11.25,10.85,11.00]},{ x:'06/25/2024',y:[10.40,11.15,10.40,10.80]},{ x:'06/26/2024',y:[10.80,11.40,10.80,10.80]},{ x:'06/27/2024',y:[10.90,11.00,10.25,10.50]},{ x:'06/28/2024',y:[9.57,10.80,9.57,10.80]},{ x:'07/01/2024',y:[10.35,10.95,10.35,10.80]},{ x:'07/02/2024',y:[10.80,10.95,10.40,10.95]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8291 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());