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/13/2023',y:[284.00,287.00,280.50,281.50]},{ x:'04/14/2023',y:[283.50,291.00,283.00,288.50]},{ x:'04/17/2023',y:[293.50,306.50,291.50,297.00]},{ x:'04/18/2023',y:[300.00,303.50,292.50,293.50]},{ x:'04/19/2023',y:[297.50,303.00,297.00,300.50]},{ x:'04/20/2023',y:[301.50,301.50,279.00,280.00]},{ x:'04/21/2023',y:[282.00,286.00,275.50,276.50]},{ x:'04/24/2023',y:[276.50,283.50,276.50,282.50]},{ x:'04/25/2023',y:[282.00,283.00,275.50,277.00]},{ x:'04/26/2023',y:[275.50,278.50,271.00,278.00]},{ x:'04/27/2023',y:[279.00,279.00,274.50,278.50]},{ x:'04/28/2023',y:[282.00,286.00,282.00,285.00]},{ x:'05/02/2023',y:[285.00,291.00,285.00,287.50]},{ x:'05/03/2023',y:[287.50,290.50,284.00,288.50]},{ x:'05/04/2023',y:[288.50,292.00,286.50,290.50]},{ x:'05/05/2023',y:[292.00,297.00,292.00,294.50]},{ x:'05/08/2023',y:[298.00,298.00,292.00,294.00]},{ x:'05/09/2023',y:[295.00,295.00,286.00,287.00]},{ x:'05/10/2023',y:[290.00,294.00,287.00,292.00]},{ x:'05/11/2023',y:[292.50,294.00,286.00,288.00]},{ x:'05/12/2023',y:[291.00,298.00,287.50,297.50]},{ x:'05/15/2023',y:[297.00,308.00,294.00,295.50]},{ x:'05/16/2023',y:[297.50,302.00,296.50,299.00]},{ x:'05/17/2023',y:[299.00,300.00,297.00,299.00]},{ x:'05/18/2023',y:[302.00,302.00,297.00,297.00]},{ x:'05/19/2023',y:[299.50,299.50,292.00,294.50]},{ x:'05/22/2023',y:[294.00,294.00,288.50,291.00]},{ x:'05/23/2023',y:[290.50,295.50,289.50,294.00]},{ x:'05/24/2023',y:[291.50,298.00,291.50,295.50]},{ x:'05/25/2023',y:[298.50,308.00,294.00,296.00]},{ x:'05/26/2023',y:[298.00,299.50,288.50,294.50]},{ x:'05/29/2023',y:[296.00,299.00,294.50,297.00]},{ x:'05/30/2023',y:[299.50,300.50,297.00,300.00]},{ x:'05/31/2023',y:[301.50,306.00,300.00,302.50]},{ x:'06/01/2023',y:[305.50,320.00,304.00,312.00]},{ x:'06/02/2023',y:[313.00,318.50,306.00,306.00]},{ x:'06/05/2023',y:[307.00,307.00,296.00,296.50]},{ x:'06/06/2023',y:[296.50,298.50,293.00,298.00]},{ x:'06/07/2023',y:[300.00,320.00,298.50,316.50]},{ x:'06/08/2023',y:[319.50,320.00,303.00,307.00]},{ x:'06/09/2023',y:[308.00,311.00,305.50,309.00]},{ x:'06/12/2023',y:[319.50,327.50,315.00,327.50]},{ x:'06/13/2023',y:[337.50,338.00,325.00,331.00]},{ x:'06/14/2023',y:[331.00,331.00,316.50,319.50]},{ x:'06/15/2023',y:[321.00,328.00,318.50,327.50]},{ x:'06/16/2023',y:[327.50,327.50,320.00,323.50]},{ x:'06/19/2023',y:[326.00,328.50,323.00,325.50]},{ x:'06/20/2023',y:[326.50,326.50,320.00,320.50]},{ x:'06/21/2023',y:[320.50,325.00,318.50,323.50]},{ x:'06/26/2023',y:[323.50,323.50,318.50,320.00]},{ x:'06/27/2023',y:[320.00,323.50,317.50,320.00]},{ x:'06/28/2023',y:[320.50,321.00,316.50,318.50]},{ x:'06/29/2023',y:[319.50,331.50,319.50,327.00]},{ x:'06/30/2023',y:[326.00,342.00,325.00,340.00]},{ x:'07/03/2023',y:[341.00,347.50,336.50,346.50]},{ x:'07/04/2023',y:[350.00,364.00,348.50,362.50]},{ x:'07/05/2023',y:[365.50,378.00,363.00,377.00]},{ x:'07/06/2023',y:[378.00,383.00,370.50,378.00]},{ x:'07/07/2023',y:[375.00,376.00,367.50,372.50]},{ x:'07/10/2023',y:[373.00,376.50,358.50,361.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6691 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());