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/29/2024',y:[226.00,228.00,226.00,226.50]},{ x:'04/30/2024',y:[227.00,229.00,225.50,228.00]},{ x:'05/02/2024',y:[228.50,231.00,228.50,230.50]},{ x:'05/03/2024',y:[233.00,238.00,232.50,232.50]},{ x:'05/06/2024',y:[235.00,236.00,230.00,231.00]},{ x:'05/07/2024',y:[232.00,232.00,228.50,230.50]},{ x:'05/08/2024',y:[230.50,234.00,229.50,234.00]},{ x:'05/09/2024',y:[236.50,243.00,236.50,238.00]},{ x:'05/10/2024',y:[238.00,243.50,238.00,243.50]},{ x:'05/13/2024',y:[237.00,242.00,235.00,242.00]},{ x:'05/14/2024',y:[245.00,246.00,241.00,242.50]},{ x:'05/15/2024',y:[244.00,246.00,237.50,240.00]},{ x:'05/16/2024',y:[242.50,242.50,238.50,239.00]},{ x:'05/17/2024',y:[239.00,242.00,239.00,242.00]},{ x:'05/20/2024',y:[242.00,243.50,240.00,243.00]},{ x:'05/21/2024',y:[243.00,248.50,242.00,247.50]},{ x:'05/22/2024',y:[250.50,256.00,248.00,255.00]},{ x:'05/23/2024',y:[255.50,256.50,252.50,256.50]},{ x:'05/24/2024',y:[252.50,276.00,252.50,276.00]},{ x:'06/11/2024',y:[316.00,316.00,304.50,306.00]},{ x:'06/12/2024',y:[300.50,313.00,300.50,313.00]},{ x:'06/13/2024',y:[315.00,330.00,315.00,326.00]},{ x:'06/14/2024',y:[332.50,332.50,316.00,317.50]},{ x:'06/17/2024',y:[319.00,326.50,318.50,324.00]},{ x:'06/18/2024',y:[324.00,338.00,324.00,338.00]},{ x:'06/19/2024',y:[341.50,341.50,321.50,334.00]},{ x:'06/20/2024',y:[333.50,350.00,332.50,346.50]},{ x:'06/21/2024',y:[347.00,349.00,342.00,343.00]},{ x:'06/24/2024',y:[346.00,346.00,326.00,326.50]},{ x:'06/25/2024',y:[324.00,324.50,318.00,322.50]},{ x:'06/26/2024',y:[322.00,328.50,321.00,322.00]},{ x:'06/27/2024',y:[322.00,332.00,321.00,322.00]},{ x:'06/28/2024',y:[330.00,332.50,322.50,331.50]},{ x:'07/01/2024',y:[338.00,343.50,333.00,339.50]},{ x:'07/02/2024',y:[335.50,345.50,335.50,338.50]},{ x:'07/03/2024',y:[345.00,347.00,336.50,338.50]},{ x:'07/04/2024',y:[346.50,346.50,338.00,338.50]},{ x:'07/05/2024',y:[344.00,345.00,341.00,342.00]},{ x:'07/12/2024',y:[306.00,313.00,306.00,311.00]},{ x:'07/15/2024',y:[303.50,309.00,298.50,306.00]},{ x:'07/16/2024',y:[300.00,308.00,300.00,305.50]},{ x:'07/17/2024',y:[296.00,304.50,296.00,300.00]},{ x:'07/18/2024',y:[300.50,300.50,280.00,285.00]},{ x:'07/19/2024',y:[284.50,295.00,284.50,289.00]},{ x:'07/22/2024',y:[284.00,298.00,283.50,295.00]},{ x:'07/23/2024',y:[293.00,300.00,293.00,296.50]},{ x:'07/26/2024',y:[287.00,298.50,287.00,295.00]},{ x:'07/29/2024',y:[295.00,295.00,277.00,277.00]},{ x:'07/30/2024',y:[275.50,282.00,272.00,281.00]},{ x:'07/31/2024',y:[275.00,278.00,272.50,275.00]},{ x:'08/01/2024',y:[275.50,284.00,275.50,276.50]},{ x:'08/02/2024',y:[280.00,280.00,273.50,273.50]},{ x:'08/05/2024',y:[271.50,273.00,257.00,267.00]},{ x:'08/06/2024',y:[268.00,268.50,258.00,264.00]},{ x:'08/07/2024',y:[261.00,273.00,261.00,270.00]},{ x:'08/08/2024',y:[270.00,276.00,270.00,273.00]},{ x:'08/09/2024',y:[278.00,281.50,277.50,281.50]},{ x:'08/12/2024',y:[285.00,287.00,283.00,283.50]},{ x:'08/13/2024',y:[278.50,280.50,278.50,279.00]},{ x:'08/14/2024',y:[280.50,284.50,279.50,280.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4728 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());