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/22/2024',y:[216.00,224.00,215.50,221.00]},{ x:'01/23/2024',y:[221.00,222.00,216.50,220.00]},{ x:'01/24/2024',y:[224.50,228.00,218.50,219.00]},{ x:'01/25/2024',y:[222.50,226.00,216.00,216.00]},{ x:'01/26/2024',y:[215.00,215.00,210.00,210.50]},{ x:'01/29/2024',y:[211.50,218.50,210.00,218.50]},{ x:'01/30/2024',y:[218.50,221.50,218.00,220.00]},{ x:'01/31/2024',y:[220.00,224.00,215.50,215.50]},{ x:'02/01/2024',y:[215.50,220.50,213.50,218.50]},{ x:'02/02/2024',y:[220.00,222.00,218.00,219.50]},{ x:'02/05/2024',y:[220.00,221.50,215.00,221.50]},{ x:'02/15/2024',y:[230.50,243.50,224.50,243.50]},{ x:'02/16/2024',y:[245.50,253.00,243.00,247.50]},{ x:'02/19/2024',y:[250.00,251.00,239.50,242.50]},{ x:'02/20/2024',y:[244.50,251.50,240.00,242.00]},{ x:'02/21/2024',y:[242.00,246.00,233.50,239.50]},{ x:'02/22/2024',y:[247.00,257.50,242.00,253.50]},{ x:'02/23/2024',y:[258.00,278.50,256.50,278.50]},{ x:'02/26/2024',y:[281.00,294.50,276.50,293.50]},{ x:'02/27/2024',y:[295.00,295.50,264.50,266.50]},{ x:'02/29/2024',y:[270.50,270.50,261.00,267.00]},{ x:'03/01/2024',y:[268.00,272.00,264.50,268.00]},{ x:'03/04/2024',y:[281.00,284.00,266.50,268.00]},{ x:'03/05/2024',y:[270.00,279.50,266.50,275.00]},{ x:'03/06/2024',y:[271.00,293.50,271.00,288.00]},{ x:'03/07/2024',y:[293.50,302.00,273.00,285.00]},{ x:'03/08/2024',y:[293.00,295.50,262.00,263.50]},{ x:'03/11/2024',y:[273.00,287.00,272.00,280.50]},{ x:'03/12/2024',y:[276.50,289.00,276.00,285.00]},{ x:'03/13/2024',y:[289.50,290.00,266.50,276.00]},{ x:'03/14/2024',y:[277.50,278.00,257.00,265.00]},{ x:'03/15/2024',y:[260.50,276.00,260.50,266.00]},{ x:'03/18/2024',y:[267.50,289.00,267.00,287.00]},{ x:'03/19/2024',y:[286.00,298.00,284.00,290.00]},{ x:'03/20/2024',y:[291.00,293.00,277.00,277.50]},{ x:'03/21/2024',y:[283.00,288.00,280.00,283.00]},{ x:'03/22/2024',y:[283.00,290.50,279.00,287.00]},{ x:'03/25/2024',y:[289.00,301.50,283.00,298.50]},{ x:'03/26/2024',y:[300.00,312.00,288.50,291.50]},{ x:'03/27/2024',y:[294.00,320.00,287.00,317.50]},{ x:'03/28/2024',y:[314.00,323.00,309.00,309.00]},{ x:'03/29/2024',y:[309.00,311.00,297.50,302.00]},{ x:'04/01/2024',y:[306.50,324.50,304.00,315.50]},{ x:'04/02/2024',y:[320.50,347.00,317.50,347.00]},{ x:'04/03/2024',y:[346.00,381.50,341.00,380.50]},{ x:'04/08/2024',y:[380.50,381.50,358.00,364.50]},{ x:'04/09/2024',y:[380.00,386.50,353.50,354.00]},{ x:'04/10/2024',y:[363.00,370.00,341.00,341.00]},{ x:'04/11/2024',y:[344.00,347.50,335.50,337.00]},{ x:'04/12/2024',y:[345.00,358.50,340.00,341.00]},{ x:'04/15/2024',y:[339.50,358.50,339.00,341.00]},{ x:'04/16/2024',y:[339.50,343.50,321.00,340.00]},{ x:'04/17/2024',y:[348.00,363.00,345.50,363.00]},{ x:'04/18/2024',y:[358.00,364.50,342.50,346.50]},{ x:'04/19/2024',y:[329.00,335.50,312.00,316.50]},{ x:'04/22/2024',y:[317.00,323.50,302.50,304.50]},{ x:'04/23/2024',y:[318.00,324.00,311.50,321.50]},{ x:'04/24/2024',y:[330.00,343.00,328.50,328.50]},{ x:'04/25/2024',y:[324.00,330.00,317.50,326.50]},{ x:'04/26/2024',y:[333.00,339.50,330.50,335.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3583 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());