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:'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]},{ x:'07/11/2023',y:[363.00,370.50,360.00,370.50]},{ x:'07/12/2023',y:[372.00,380.00,364.00,380.00]},{ x:'07/13/2023',y:[387.00,397.50,380.00,390.50]},{ x:'07/14/2023',y:[390.00,400.00,382.00,400.00]},{ x:'07/17/2023',y:[300.00,303.50,270.50,276.50]},{ x:'07/18/2023',y:[277.50,292.00,277.50,287.50]},{ x:'07/19/2023',y:[290.00,298.50,288.00,292.50]},{ x:'07/20/2023',y:[295.00,295.00,284.00,287.00]},{ x:'07/21/2023',y:[280.00,283.50,278.50,281.50]},{ x:'07/24/2023',y:[288.00,288.00,279.00,279.50]},{ x:'07/25/2023',y:[280.00,284.00,277.00,278.50]},{ x:'07/26/2023',y:[281.00,281.00,275.50,275.50]},{ x:'07/27/2023',y:[276.50,281.50,276.00,279.00]},{ x:'07/28/2023',y:[278.50,281.00,276.00,280.50]},{ x:'07/31/2023',y:[282.00,286.00,279.50,280.00]},{ x:'08/01/2023',y:[280.00,282.50,276.00,277.00]},{ x:'08/02/2023',y:[276.00,279.00,271.00,273.00]},{ x:'08/04/2023',y:[272.50,281.00,271.00,280.50]},{ x:'08/07/2023',y:[280.00,280.00,275.50,276.00]},{ x:'08/08/2023',y:[279.50,279.50,275.00,277.00]},{ x:'08/09/2023',y:[279.50,282.00,277.00,278.00]},{ x:'08/10/2023',y:[276.00,276.50,272.50,273.50]},{ x:'08/11/2023',y:[276.00,276.00,272.50,273.50]},{ x:'08/14/2023',y:[273.50,274.00,267.50,268.00]},{ x:'08/15/2023',y:[271.50,273.00,270.00,271.00]},{ x:'08/16/2023',y:[270.00,270.00,263.00,268.50]},{ x:'08/17/2023',y:[266.00,280.00,266.00,279.50]},{ x:'08/18/2023',y:[279.50,279.50,273.00,274.00]},{ x:'08/21/2023',y:[266.50,270.00,261.50,262.50]},{ x:'08/22/2023',y:[262.00,264.00,250.50,252.00]},{ x:'08/23/2023',y:[251.00,255.00,247.00,249.50]},{ x:'08/24/2023',y:[249.50,252.00,245.00,247.00]},{ x:'08/25/2023',y:[247.00,247.00,243.00,244.00]},{ x:'08/28/2023',y:[244.50,245.00,239.00,240.00]},{ x:'08/29/2023',y:[240.00,242.00,235.50,242.00]},{ x:'08/30/2023',y:[244.00,247.50,243.00,247.50]},{ x:'08/31/2023',y:[248.00,249.50,244.00,248.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());