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:'01/05/2023',y:[307.00,308.00,301.00,302.00]},{ x:'01/06/2023',y:[302.00,302.00,294.00,294.00]},{ x:'01/09/2023',y:[297.50,304.50,288.00,303.00]},{ x:'01/10/2023',y:[296.00,299.00,294.00,295.50]},{ x:'01/11/2023',y:[295.00,297.50,287.00,288.50]},{ x:'01/12/2023',y:[289.00,293.00,285.00,290.50]},{ x:'01/13/2023',y:[290.50,300.00,288.00,293.50]},{ x:'01/16/2023',y:[296.50,322.50,294.00,322.00]},{ x:'01/17/2023',y:[321.00,342.00,317.50,333.00]},{ x:'01/30/2023',y:[340.00,340.00,321.00,329.50]},{ x:'01/31/2023',y:[327.00,343.00,325.00,341.00]},{ x:'02/01/2023',y:[338.00,345.00,337.00,339.50]},{ x:'02/02/2023',y:[340.00,340.00,326.50,333.00]},{ x:'02/03/2023',y:[330.00,334.00,319.00,321.00]},{ x:'02/06/2023',y:[323.00,341.00,321.00,336.50]},{ x:'02/07/2023',y:[339.50,347.50,336.50,339.00]},{ x:'02/08/2023',y:[339.00,347.50,336.50,341.50]},{ x:'02/09/2023',y:[337.00,345.50,335.00,340.00]},{ x:'02/10/2023',y:[348.00,360.50,341.50,353.00]},{ x:'02/13/2023',y:[351.00,351.00,333.00,334.50]},{ x:'02/14/2023',y:[331.50,338.50,326.00,327.50]},{ x:'02/15/2023',y:[333.00,338.00,327.00,335.50]},{ x:'02/16/2023',y:[332.00,345.00,332.00,343.50]},{ x:'02/17/2023',y:[341.00,344.00,335.50,343.50]},{ x:'02/20/2023',y:[345.00,377.50,344.50,377.50]},{ x:'02/21/2023',y:[377.00,387.50,368.50,383.50]},{ x:'02/22/2023',y:[375.00,382.00,367.50,375.00]},{ x:'02/23/2023',y:[370.50,388.50,370.50,383.00]},{ x:'02/24/2023',y:[382.00,382.00,353.00,375.00]},{ x:'03/01/2023',y:[369.00,369.00,353.00,356.50]},{ x:'03/02/2023',y:[352.00,366.50,344.00,353.00]},{ x:'03/03/2023',y:[355.00,355.50,346.50,348.00]},{ x:'03/06/2023',y:[347.00,349.50,335.00,343.00]},{ x:'03/07/2023',y:[347.00,352.00,343.00,350.50]},{ x:'03/08/2023',y:[343.00,346.00,335.50,343.50]},{ x:'03/09/2023',y:[335.50,339.50,329.50,330.50]},{ x:'03/10/2023',y:[326.50,326.50,299.00,302.50]},{ x:'03/13/2023',y:[298.00,300.00,272.50,279.00]},{ x:'03/14/2023',y:[274.00,278.50,264.00,265.00]},{ x:'03/15/2023',y:[270.50,279.00,265.00,272.00]},{ x:'03/16/2023',y:[267.00,269.00,251.00,258.00]},{ x:'03/17/2023',y:[260.00,266.50,255.50,261.00]},{ x:'03/20/2023',y:[250.00,267.50,246.00,262.50]},{ x:'03/21/2023',y:[265.00,274.50,258.00,267.00]},{ x:'03/22/2023',y:[272.00,282.00,266.50,280.50]},{ x:'03/23/2023',y:[277.00,282.50,275.00,277.50]},{ 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]} ] }], 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());