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/22/2024',y:[250.00,273.00,239.00,239.00]},{ x:'04/23/2024',y:[252.50,259.50,222.00,229.00]},{ x:'04/24/2024',y:[238.00,251.50,234.50,251.50]},{ x:'04/25/2024',y:[260.50,276.50,260.00,276.50]},{ x:'04/26/2024',y:[304.00,304.00,304.00,304.00]},{ x:'04/29/2024',y:[320.00,323.00,286.00,295.00]},{ x:'04/30/2024',y:[302.50,324.50,297.50,324.50]},{ x:'05/02/2024',y:[318.00,356.00,311.00,334.00]},{ x:'05/03/2024',y:[334.00,334.00,319.00,326.00]},{ x:'05/06/2024',y:[329.00,329.00,314.50,314.50]},{ x:'05/07/2024',y:[314.50,328.00,313.50,328.00]},{ x:'05/08/2024',y:[329.50,334.00,321.00,322.50]},{ x:'05/09/2024',y:[317.50,324.00,317.00,321.00]},{ x:'05/10/2024',y:[321.00,321.00,306.00,308.00]},{ x:'05/13/2024',y:[307.00,307.00,277.50,283.00]},{ x:'05/14/2024',y:[285.50,297.00,285.50,296.00]},{ x:'05/15/2024',y:[297.50,306.50,297.50,301.00]},{ x:'05/16/2024',y:[308.50,313.00,283.00,290.50]},{ x:'05/17/2024',y:[296.00,319.50,282.50,319.50]},{ x:'05/20/2024',y:[345.00,351.00,330.00,334.00]},{ x:'05/21/2024',y:[338.00,367.00,338.00,367.00]},{ x:'05/22/2024',y:[376.00,403.50,365.00,368.00]},{ x:'05/23/2024',y:[380.00,394.00,356.50,362.50]},{ x:'05/24/2024',y:[352.00,369.00,350.00,356.50]},{ x:'06/11/2024',y:[308.50,312.00,295.50,298.50]},{ x:'06/12/2024',y:[298.50,308.50,294.50,308.00]},{ x:'06/13/2024',y:[313.00,314.50,299.00,302.50]},{ x:'06/14/2024',y:[302.00,332.50,301.50,332.50]},{ x:'06/17/2024',y:[340.00,351.50,320.50,323.00]},{ x:'06/18/2024',y:[325.00,328.50,314.00,317.00]},{ x:'06/19/2024',y:[318.00,331.50,318.00,318.50]},{ x:'06/20/2024',y:[316.00,338.00,315.00,333.50]},{ x:'06/21/2024',y:[330.00,332.50,318.50,330.00]},{ x:'06/24/2024',y:[326.00,334.00,321.50,328.00]},{ x:'06/25/2024',y:[336.00,339.00,316.00,320.50]},{ x:'06/26/2024',y:[320.50,341.00,320.50,331.00]},{ x:'06/27/2024',y:[328.00,333.00,320.50,320.50]},{ x:'06/28/2024',y:[326.50,332.50,323.00,331.00]},{ x:'07/01/2024',y:[330.00,334.50,322.00,323.00]},{ x:'07/02/2024',y:[323.00,325.00,316.00,316.00]},{ x:'07/03/2024',y:[322.00,331.00,316.50,319.50]},{ x:'07/04/2024',y:[321.50,324.00,316.50,324.00]},{ x:'07/05/2024',y:[331.00,336.00,323.50,324.00]},{ x:'07/12/2024',y:[308.00,309.50,298.00,300.00]},{ x:'07/15/2024',y:[300.50,303.50,296.50,299.00]},{ x:'07/16/2024',y:[300.00,303.00,297.50,297.50]},{ x:'07/17/2024',y:[297.50,301.00,290.00,291.50]},{ x:'07/18/2024',y:[288.50,288.50,280.50,283.00]},{ x:'07/19/2024',y:[283.50,285.50,272.50,273.50]},{ x:'07/22/2024',y:[277.00,277.00,262.00,267.50]},{ x:'07/23/2024',y:[273.00,273.50,267.50,270.50]},{ x:'07/26/2024',y:[258.50,263.00,253.00,259.50]},{ x:'07/29/2024',y:[259.50,264.00,250.00,254.50]},{ x:'07/30/2024',y:[254.00,261.00,249.50,258.00]},{ x:'07/31/2024',y:[259.00,261.00,252.50,252.50]},{ x:'08/01/2024',y:[256.00,266.50,256.00,262.00]},{ x:'08/02/2024',y:[255.00,255.00,243.00,243.50]},{ x:'08/05/2024',y:[228.00,228.00,219.50,219.50]},{ x:'08/06/2024',y:[214.50,226.00,198.00,211.00]},{ x:'08/07/2024',y:[211.00,232.00,211.00,232.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6230 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());