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/24/2023',y:[193.00,195.00,186.00,194.50]},{ x:'03/27/2023',y:[200.50,213.50,196.00,213.50]},{ x:'03/28/2023',y:[215.50,221.00,206.00,209.00]},{ x:'03/29/2023',y:[214.50,229.50,210.50,216.00]},{ x:'03/30/2023',y:[221.50,225.00,218.00,222.00]},{ x:'03/31/2023',y:[223.00,224.50,217.00,220.50]},{ x:'04/06/2023',y:[222.00,229.50,216.00,226.00]},{ x:'04/07/2023',y:[230.00,233.00,223.00,230.00]},{ x:'04/10/2023',y:[228.00,246.00,227.00,245.00]},{ x:'04/11/2023',y:[244.00,253.00,242.00,250.00]},{ x:'04/12/2023',y:[251.00,255.50,249.00,254.50]},{ x:'04/13/2023',y:[253.00,254.00,246.00,249.00]},{ x:'04/14/2023',y:[249.50,253.00,247.50,247.50]},{ x:'04/17/2023',y:[247.00,254.00,246.50,251.00]},{ x:'04/18/2023',y:[254.50,258.50,241.00,249.00]},{ x:'04/19/2023',y:[249.00,250.00,243.00,243.00]},{ x:'04/20/2023',y:[243.00,245.00,235.50,239.00]},{ x:'04/21/2023',y:[237.50,241.50,227.00,231.50]},{ x:'04/24/2023',y:[231.00,239.00,230.50,237.00]},{ x:'04/25/2023',y:[236.00,238.00,220.50,226.50]},{ x:'04/26/2023',y:[226.50,232.50,225.00,229.00]},{ x:'04/27/2023',y:[228.50,249.00,225.00,249.00]},{ x:'04/28/2023',y:[250.00,251.50,243.50,248.00]},{ x:'05/02/2023',y:[249.00,254.00,247.00,249.00]},{ x:'05/03/2023',y:[247.50,250.00,233.50,233.50]},{ x:'05/04/2023',y:[239.50,242.50,233.00,235.50]},{ x:'05/05/2023',y:[235.50,250.50,235.50,240.50]},{ x:'05/08/2023',y:[235.50,253.00,234.50,250.00]},{ x:'05/09/2023',y:[252.00,256.00,241.00,255.50]},{ x:'05/10/2023',y:[255.00,255.00,247.00,251.00]},{ x:'05/11/2023',y:[252.50,252.50,246.00,247.00]},{ x:'05/12/2023',y:[246.00,250.50,242.50,248.50]},{ x:'05/15/2023',y:[244.00,245.00,230.00,231.50]},{ x:'05/16/2023',y:[233.00,240.00,230.50,238.00]},{ x:'05/17/2023',y:[238.00,254.00,236.00,248.50]},{ x:'05/18/2023',y:[251.00,259.00,249.00,258.00]},{ x:'05/19/2023',y:[258.00,266.00,248.50,262.50]},{ x:'05/22/2023',y:[262.00,262.00,252.50,252.50]},{ x:'05/23/2023',y:[254.00,255.00,248.50,249.00]},{ x:'05/24/2023',y:[248.00,253.00,244.50,252.00]},{ x:'05/25/2023',y:[262.50,275.00,257.00,274.00]},{ x:'05/26/2023',y:[275.00,283.00,269.50,279.00]},{ x:'05/29/2023',y:[283.50,283.50,270.50,273.50]},{ x:'05/30/2023',y:[273.00,273.50,265.00,271.50]},{ x:'05/31/2023',y:[272.50,277.50,268.00,270.00]},{ x:'06/01/2023',y:[270.00,272.50,267.50,269.00]},{ x:'06/02/2023',y:[282.50,293.00,276.00,285.50]},{ x:'06/05/2023',y:[286.00,287.00,272.50,280.00]},{ x:'06/06/2023',y:[278.50,291.50,276.00,285.00]},{ x:'06/07/2023',y:[286.00,296.00,283.00,295.00]},{ x:'06/08/2023',y:[291.00,292.00,283.50,286.00]},{ x:'06/09/2023',y:[288.00,305.00,288.00,298.50]},{ x:'06/12/2023',y:[298.50,299.50,291.00,291.00]},{ x:'06/13/2023',y:[296.00,300.00,288.00,295.00]},{ x:'06/14/2023',y:[291.50,298.00,289.00,291.00]},{ x:'06/15/2023',y:[294.50,304.50,292.50,300.50]},{ x:'06/16/2023',y:[301.50,305.00,289.00,291.50]},{ x:'06/19/2023',y:[290.50,290.50,283.00,286.50]},{ x:'06/20/2023',y:[286.50,299.00,286.50,294.50]},{ x:'06/21/2023',y:[294.00,297.50,291.00,292.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3324 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());