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:'05/05/2023',y:[287.50,290.00,287.00,289.50]},{ x:'05/08/2023',y:[290.00,293.50,288.00,289.50]},{ x:'05/09/2023',y:[291.00,291.00,286.00,289.50]},{ x:'05/10/2023',y:[288.50,291.50,287.00,291.00]},{ x:'05/11/2023',y:[289.00,289.00,280.00,280.00]},{ x:'05/12/2023',y:[281.00,292.00,280.50,290.00]},{ x:'05/15/2023',y:[291.50,292.00,283.50,284.00]},{ x:'05/16/2023',y:[284.00,288.00,282.50,288.00]},{ x:'05/17/2023',y:[288.50,300.00,288.50,298.00]},{ x:'05/18/2023',y:[300.00,321.00,295.50,319.50]},{ x:'05/19/2023',y:[323.50,323.50,303.00,304.50]},{ x:'05/22/2023',y:[308.50,308.50,297.00,299.50]},{ x:'05/23/2023',y:[301.50,305.50,294.50,295.00]},{ x:'05/24/2023',y:[295.00,302.00,295.00,298.50]},{ x:'05/25/2023',y:[298.00,300.50,295.00,295.00]},{ x:'05/26/2023',y:[295.50,295.50,284.50,284.50]},{ x:'05/29/2023',y:[286.00,290.00,284.50,288.00]},{ x:'05/30/2023',y:[286.00,296.50,286.00,288.50]},{ x:'05/31/2023',y:[290.50,293.00,286.00,289.50]},{ x:'06/01/2023',y:[292.50,297.00,292.00,293.50]},{ x:'06/02/2023',y:[298.00,301.50,296.00,297.00]},{ x:'06/05/2023',y:[299.50,301.50,297.50,298.50]},{ x:'06/06/2023',y:[299.50,303.50,299.50,301.50]},{ x:'06/07/2023',y:[304.50,304.50,301.50,303.00]},{ x:'06/08/2023',y:[303.00,303.50,298.00,298.00]},{ x:'06/09/2023',y:[300.50,305.00,298.50,304.50]},{ x:'06/12/2023',y:[307.50,312.00,303.50,305.00]},{ x:'06/13/2023',y:[315.50,320.00,306.50,313.00]},{ x:'06/14/2023',y:[316.00,344.00,314.00,344.00]},{ x:'06/15/2023',y:[356.00,359.00,344.00,352.50]},{ x:'06/16/2023',y:[345.00,345.50,307.50,308.00]},{ x:'06/19/2023',y:[310.00,318.00,305.00,315.00]},{ x:'06/20/2023',y:[315.00,323.00,308.50,319.50]},{ x:'06/21/2023',y:[323.50,342.00,321.50,337.00]},{ x:'06/26/2023',y:[337.00,343.50,334.00,334.00]},{ x:'06/27/2023',y:[334.50,341.00,330.50,339.50]},{ x:'06/28/2023',y:[348.50,357.00,341.50,345.00]},{ x:'06/29/2023',y:[344.50,350.00,342.50,345.50]},{ x:'06/30/2023',y:[347.00,350.50,337.00,338.00]},{ x:'07/03/2023',y:[342.00,342.00,336.00,338.00]},{ x:'07/04/2023',y:[341.00,341.50,330.00,335.50]},{ x:'07/05/2023',y:[335.50,337.50,334.50,336.00]},{ x:'07/06/2023',y:[337.00,337.00,331.50,333.00]},{ x:'07/07/2023',y:[331.00,331.00,324.00,329.50]},{ x:'07/10/2023',y:[335.00,339.00,333.00,338.50]},{ x:'07/11/2023',y:[336.00,339.50,330.50,339.00]},{ x:'07/12/2023',y:[343.00,343.00,334.00,334.00]},{ x:'07/13/2023',y:[335.00,338.50,332.50,333.00]},{ x:'07/14/2023',y:[333.50,333.50,324.50,330.00]},{ x:'07/17/2023',y:[330.00,331.00,324.00,325.00]},{ x:'07/18/2023',y:[327.00,327.00,314.00,316.50]},{ x:'07/19/2023',y:[320.00,323.00,313.00,316.00]},{ x:'07/20/2023',y:[316.00,320.50,315.00,320.00]},{ x:'07/21/2023',y:[320.00,320.00,314.00,315.00]},{ x:'07/24/2023',y:[318.50,318.50,311.00,313.50]},{ x:'07/25/2023',y:[316.50,318.00,312.00,315.00]},{ x:'07/26/2023',y:[315.00,321.00,314.00,316.00]},{ x:'07/27/2023',y:[320.00,320.00,314.00,315.50]},{ x:'07/28/2023',y:[318.50,325.00,316.00,324.00]},{ x:'07/31/2023',y:[328.00,328.00,315.00,315.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2247 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());