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/21/2024',y:[300.00,319.00,296.50,319.00]},{ x:'03/22/2024',y:[340.00,350.50,290.50,300.00]},{ x:'03/25/2024',y:[318.00,330.00,316.00,330.00]},{ x:'03/26/2024',y:[362.00,363.00,348.50,363.00]},{ x:'03/27/2024',y:[385.50,399.00,385.00,399.00]},{ x:'03/28/2024',y:[404.50,434.00,365.00,365.00]},{ x:'03/29/2024',y:[360.00,397.50,359.00,397.50]},{ x:'04/01/2024',y:[370.50,399.50,370.50,399.50]},{ x:'04/02/2024',y:[410.00,410.00,400.00,405.50]},{ x:'04/03/2024',y:[410.00,430.00,406.00,417.00]},{ x:'04/08/2024',y:[417.00,429.00,414.00,416.50]},{ x:'04/09/2024',y:[402.50,413.50,385.00,385.00]},{ x:'04/10/2024',y:[395.00,400.00,384.50,400.00]},{ x:'04/11/2024',y:[403.00,408.00,365.00,400.00]},{ x:'04/12/2024',y:[382.00,399.50,373.00,393.00]},{ x:'04/15/2024',y:[372.00,406.00,372.00,406.00]},{ x:'04/16/2024',y:[434.50,436.00,365.50,365.50]},{ x:'04/17/2024',y:[343.50,367.00,329.00,329.00]},{ x:'04/18/2024',y:[296.50,302.00,296.50,296.50]},{ x:'04/19/2024',y:[267.00,288.50,267.00,273.50]},{ x:'04/22/2024',y:[280.00,280.00,252.00,252.50]},{ x:'04/23/2024',y:[248.00,252.00,245.00,246.00]},{ x:'04/24/2024',y:[245.00,257.00,245.00,253.00]},{ x:'04/25/2024',y:[251.00,251.00,239.00,239.00]},{ x:'04/26/2024',y:[238.50,254.00,227.50,251.50]},{ x:'04/29/2024',y:[252.00,274.00,252.00,274.00]},{ x:'04/30/2024',y:[275.00,282.50,270.00,272.00]},{ x:'05/02/2024',y:[272.00,299.00,272.00,299.00]},{ x:'05/03/2024',y:[287.00,287.00,278.00,279.50]},{ x:'05/06/2024',y:[285.00,285.00,255.50,259.00]},{ x:'05/07/2024',y:[254.00,264.00,254.00,263.00]},{ x:'05/08/2024',y:[263.00,263.00,250.00,256.50]},{ x:'05/09/2024',y:[250.50,252.50,250.50,252.50]},{ x:'05/10/2024',y:[252.00,256.00,250.00,253.50]},{ x:'05/13/2024',y:[228.50,238.50,228.50,228.50]},{ x:'05/14/2024',y:[228.50,234.50,225.00,225.00]},{ x:'05/15/2024',y:[229.00,247.50,205.00,211.50]},{ x:'05/16/2024',y:[211.50,219.50,195.00,198.50]},{ x:'05/17/2024',y:[197.50,199.50,188.50,189.50]},{ x:'05/20/2024',y:[193.00,193.50,186.50,193.50]},{ x:'05/21/2024',y:[196.50,196.50,186.00,186.00]},{ x:'05/22/2024',y:[184.50,204.50,184.50,204.50]},{ x:'05/23/2024',y:[219.50,224.50,208.00,212.00]},{ x:'05/24/2024',y:[211.50,232.00,211.50,219.00]},{ x:'06/11/2024',y:[229.00,234.50,217.50,227.50]},{ x:'06/12/2024',y:[230.50,230.50,217.50,218.50]},{ x:'06/13/2024',y:[220.00,223.00,212.50,215.00]},{ x:'06/14/2024',y:[215.50,219.50,213.50,214.00]},{ x:'06/17/2024',y:[214.00,215.50,209.00,209.00]},{ x:'06/18/2024',y:[213.50,213.50,203.00,204.50]},{ x:'06/19/2024',y:[208.00,208.00,200.50,202.00]},{ x:'06/20/2024',y:[203.00,210.00,203.00,208.50]},{ x:'06/21/2024',y:[208.50,208.50,203.50,205.00]},{ x:'06/24/2024',y:[207.50,207.50,201.00,201.00]},{ x:'06/25/2024',y:[200.00,203.00,194.50,199.50]},{ x:'06/26/2024',y:[203.50,211.50,202.00,203.50]},{ x:'06/27/2024',y:[202.50,211.50,202.50,203.50]},{ x:'06/28/2024',y:[206.00,216.00,205.50,212.00]},{ x:'07/01/2024',y:[217.50,222.00,213.00,215.00]},{ x:'07/02/2024',y:[217.00,224.50,215.00,215.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5314 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());