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:'01/23/2024',y:[116.50,124.00,116.50,123.00]},{ x:'01/24/2024',y:[123.00,135.00,123.00,135.00]},{ x:'01/25/2024',y:[136.00,147.00,136.00,144.00]},{ x:'01/26/2024',y:[152.00,152.00,144.50,147.00]},{ x:'01/29/2024',y:[147.50,160.50,147.50,160.00]},{ x:'01/30/2024',y:[163.00,170.00,147.00,152.00]},{ x:'01/31/2024',y:[165.00,167.00,155.50,167.00]},{ x:'02/01/2024',y:[167.00,183.50,164.00,183.50]},{ x:'02/02/2024',y:[187.00,201.50,187.00,201.50]},{ x:'02/05/2024',y:[181.50,181.50,181.50,181.50]},{ x:'02/15/2024',y:[173.00,181.00,163.50,179.50]},{ x:'02/16/2024',y:[175.00,182.50,170.50,181.00]},{ x:'02/19/2024',y:[188.00,199.00,181.50,199.00]},{ x:'02/20/2024',y:[198.50,200.00,193.00,197.50]},{ x:'02/21/2024',y:[197.50,197.50,186.00,187.00]},{ x:'02/22/2024',y:[183.50,183.50,168.50,168.50]},{ x:'02/23/2024',y:[169.50,169.50,163.00,168.00]},{ x:'02/26/2024',y:[170.00,175.00,170.00,172.00]},{ x:'02/27/2024',y:[172.00,178.00,170.50,178.00]},{ x:'02/29/2024',y:[193.00,195.50,193.00,195.50]},{ x:'03/01/2024',y:[206.00,215.00,206.00,215.00]},{ x:'03/04/2024',y:[229.00,236.50,224.00,236.50]},{ x:'03/05/2024',y:[250.00,260.00,250.00,260.00]},{ x:'03/06/2024',y:[259.50,273.50,235.00,250.00]},{ x:'03/07/2024',y:[245.00,246.00,233.00,236.00]},{ x:'03/08/2024',y:[245.00,249.00,212.50,238.00]},{ x:'03/11/2024',y:[234.00,234.00,225.00,226.00]},{ x:'03/12/2024',y:[244.00,245.00,235.00,237.00]},{ x:'03/13/2024',y:[237.00,247.00,231.00,241.00]},{ x:'03/14/2024',y:[247.00,262.50,247.00,256.50]},{ x:'03/15/2024',y:[264.00,281.50,260.50,278.00]},{ x:'03/18/2024',y:[284.00,305.50,284.00,305.50]},{ x:'03/19/2024',y:[323.00,335.50,303.00,303.00]},{ x:'03/20/2024',y:[303.00,303.00,285.00,290.00]},{ 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]} ] }], 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());