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:[278.00,280.50,272.00,278.00]},{ x:'03/27/2023',y:[278.00,287.00,274.50,284.00]},{ x:'03/28/2023',y:[280.00,282.00,270.50,270.50]},{ x:'03/29/2023',y:[268.50,274.50,268.50,271.00]},{ x:'03/30/2023',y:[273.50,275.50,261.00,264.00]},{ x:'03/31/2023',y:[264.50,267.50,261.50,267.50]},{ x:'04/06/2023',y:[265.50,274.00,264.00,270.00]},{ x:'04/07/2023',y:[273.50,284.00,273.50,279.50]},{ x:'04/10/2023',y:[281.50,281.50,273.00,277.50]},{ x:'04/11/2023',y:[279.00,286.00,275.50,281.00]},{ x:'04/12/2023',y:[281.00,301.00,280.00,299.00]},{ x:'04/13/2023',y:[304.00,313.50,289.50,289.50]},{ x:'04/14/2023',y:[298.00,311.00,296.50,306.00]},{ x:'04/17/2023',y:[309.00,335.50,309.00,327.50]},{ x:'04/18/2023',y:[329.00,335.00,317.00,319.50]},{ x:'04/19/2023',y:[326.50,335.00,325.50,328.00]},{ x:'04/20/2023',y:[332.00,338.50,302.50,303.00]},{ x:'04/21/2023',y:[306.50,307.50,290.00,291.50]},{ x:'04/24/2023',y:[291.00,299.00,290.50,291.00]},{ x:'04/25/2023',y:[294.50,294.50,278.00,281.50]},{ x:'04/26/2023',y:[284.50,284.50,274.00,282.00]},{ x:'04/27/2023',y:[281.00,283.00,276.50,281.50]},{ x:'04/28/2023',y:[286.00,293.50,285.00,293.00]},{ x:'05/02/2023',y:[292.00,294.00,286.00,291.00]},{ x:'05/03/2023',y:[288.00,315.00,286.00,302.00]},{ x:'05/04/2023',y:[299.00,303.00,295.50,299.00]},{ x:'05/05/2023',y:[302.50,302.50,295.00,295.00]},{ x:'05/08/2023',y:[297.00,299.50,291.50,291.50]},{ x:'05/09/2023',y:[291.50,293.50,287.50,291.50]},{ x:'05/10/2023',y:[292.00,297.50,279.50,279.50]},{ x:'05/11/2023',y:[276.00,276.00,252.00,252.00]},{ x:'05/12/2023',y:[248.00,250.50,228.00,235.00]},{ x:'05/15/2023',y:[232.50,233.50,215.50,218.50]},{ x:'05/16/2023',y:[219.50,225.00,214.50,223.00]},{ x:'05/17/2023',y:[221.00,230.50,219.00,229.50]},{ x:'05/18/2023',y:[232.00,232.00,226.00,228.00]},{ x:'05/19/2023',y:[228.50,229.00,220.50,220.50]},{ x:'05/22/2023',y:[217.00,227.00,217.00,222.00]},{ x:'05/23/2023',y:[222.00,228.00,220.50,225.00]},{ x:'05/24/2023',y:[225.00,225.00,218.50,222.00]},{ x:'05/25/2023',y:[220.50,222.50,217.00,218.50]},{ x:'05/26/2023',y:[219.00,222.00,218.50,219.00]},{ x:'05/29/2023',y:[219.50,231.50,219.50,230.00]},{ x:'05/30/2023',y:[230.00,230.00,215.00,217.50]},{ x:'05/31/2023',y:[218.00,227.50,218.00,225.50]},{ x:'06/01/2023',y:[224.50,230.00,224.00,224.50]},{ x:'06/02/2023',y:[225.50,226.50,221.50,222.00]},{ x:'06/05/2023',y:[224.50,232.50,224.50,232.00]},{ x:'06/06/2023',y:[232.00,232.00,226.00,230.50]},{ x:'06/07/2023',y:[231.00,232.50,227.50,230.00]},{ x:'06/08/2023',y:[231.00,231.50,225.50,227.50]},{ x:'06/09/2023',y:[222.00,224.00,216.00,222.50]},{ x:'06/12/2023',y:[222.50,224.50,219.00,219.00]},{ x:'06/13/2023',y:[219.00,220.50,217.00,217.50]},{ x:'06/14/2023',y:[217.00,221.50,217.00,218.50]},{ x:'06/15/2023',y:[218.00,221.50,217.50,221.50]},{ x:'06/16/2023',y:[221.50,224.00,219.00,220.00]},{ x:'06/19/2023',y:[218.50,220.00,218.00,220.00]},{ x:'06/20/2023',y:[218.50,220.00,218.00,219.50]},{ x:'06/21/2023',y:[219.50,219.50,218.00,219.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6782 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());