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:'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]},{ x:'07/03/2024',y:[10.95,10.95,10.95,10.95]},{ x:'07/04/2024',y:[0.00,0.00,0.00,0.00]},{ x:'07/05/2024',y:[10.20,10.25,10.00,10.00]},{ x:'07/12/2024',y:[10.10,10.40,10.10,10.40]},{ x:'07/15/2024',y:[11.40,11.40,11.40,11.40]},{ x:'07/16/2024',y:[12.50,12.50,11.00,12.10]},{ x:'07/17/2024',y:[12.05,12.05,11.40,11.50]},{ x:'07/18/2024',y:[11.00,11.00,10.90,11.00]},{ x:'07/19/2024',y:[10.70,10.70,10.40,10.65]},{ x:'07/22/2024',y:[10.65,11.10,10.65,11.00]},{ x:'07/23/2024',y:[11.00,11.15,11.00,11.05]},{ x:'07/26/2024',y:[10.35,10.70,10.35,10.70]},{ x:'07/29/2024',y:[10.40,10.60,10.25,10.25]},{ x:'07/30/2024',y:[10.25,10.30,10.20,10.30]},{ x:'07/31/2024',y:[9.55,10.65,9.55,10.65]},{ x:'08/01/2024',y:[10.50,10.60,10.30,10.30]},{ x:'08/02/2024',y:[10.30,10.40,10.00,10.40]},{ x:'08/05/2024',y:[10.65,10.65,9.58,9.58]},{ x:'08/06/2024',y:[10.15,10.15,10.00,10.00]},{ x:'08/07/2024',y:[11.00,11.00,10.40,10.40]},{ x:'08/08/2024',y:[0.00,0.00,0.00,0.00]},{ x:'08/09/2024',y:[9.36,9.36,9.36,9.36]},{ x:'08/12/2024',y:[8.66,8.66,8.43,8.43]},{ x:'08/13/2024',y:[7.70,7.70,7.59,7.59]},{ x:'08/14/2024',y:[6.94,6.95,6.86,6.95]},{ x:'08/15/2024',y:[7.64,7.64,7.64,7.64]} ] }], 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());