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:'02/01/2023',y:[185.00,197.00,184.00,197.00]},{ x:'02/02/2023',y:[198.00,198.00,186.00,193.00]},{ x:'02/03/2023',y:[193.00,193.50,186.50,189.00]},{ x:'02/06/2023',y:[189.00,196.00,187.00,195.00]},{ x:'02/07/2023',y:[193.50,199.00,192.50,198.50]},{ x:'02/08/2023',y:[199.50,201.00,195.00,201.00]},{ x:'02/09/2023',y:[209.50,210.00,194.00,202.00]},{ x:'02/10/2023',y:[202.00,208.00,197.50,199.00]},{ x:'02/13/2023',y:[202.50,208.00,201.50,206.50]},{ x:'02/14/2023',y:[208.00,219.00,202.50,216.50]},{ x:'02/15/2023',y:[217.50,235.00,215.00,230.50]},{ x:'02/16/2023',y:[228.00,236.00,226.00,234.00]},{ x:'02/17/2023',y:[236.50,254.00,234.00,251.50]},{ x:'02/20/2023',y:[251.50,257.00,243.50,251.50]},{ x:'02/21/2023',y:[250.00,254.50,234.00,254.00]},{ x:'02/22/2023',y:[250.00,279.00,249.00,272.00]},{ x:'02/23/2023',y:[272.00,280.00,268.00,276.00]},{ x:'02/24/2023',y:[273.50,282.00,272.00,278.50]},{ x:'03/01/2023',y:[275.00,285.50,273.00,281.00]},{ x:'03/02/2023',y:[281.00,299.50,280.50,285.50]},{ x:'03/03/2023',y:[286.00,294.00,282.00,283.00]},{ x:'03/06/2023',y:[287.00,289.00,278.50,278.50]},{ x:'03/07/2023',y:[279.00,283.00,277.00,279.00]},{ x:'03/08/2023',y:[280.00,282.00,271.00,276.00]},{ x:'03/09/2023',y:[278.50,278.50,270.50,270.50]},{ x:'03/10/2023',y:[270.50,276.50,256.50,261.00]},{ x:'03/13/2023',y:[260.50,260.50,251.00,257.00]},{ x:'03/14/2023',y:[280.00,281.00,260.50,260.50]},{ x:'03/15/2023',y:[262.50,269.50,257.50,266.50]},{ x:'03/16/2023',y:[264.50,267.00,258.00,261.00]},{ x:'03/17/2023',y:[262.50,276.00,262.00,275.00]},{ x:'03/20/2023',y:[278.50,283.50,273.50,279.00]},{ x:'03/21/2023',y:[281.00,289.50,277.00,285.00]},{ x:'03/22/2023',y:[290.00,308.00,288.00,308.00]},{ x:'03/23/2023',y:[305.00,322.00,301.50,322.00]},{ x:'03/24/2023',y:[322.00,325.00,305.50,311.50]},{ x:'03/27/2023',y:[308.00,308.00,292.50,295.00]},{ x:'03/28/2023',y:[296.50,312.50,296.50,301.00]},{ x:'03/29/2023',y:[308.50,322.50,308.00,322.50]},{ x:'03/30/2023',y:[320.50,321.00,306.50,316.00]},{ x:'03/31/2023',y:[317.50,317.50,306.50,311.50]},{ x:'04/06/2023',y:[311.50,311.50,298.50,299.50]},{ x:'04/07/2023',y:[301.50,305.00,295.50,297.00]},{ x:'04/10/2023',y:[299.50,301.50,294.50,298.00]},{ x:'04/11/2023',y:[299.00,299.50,290.00,290.50]},{ x:'04/12/2023',y:[291.00,298.00,286.50,289.00]},{ x:'04/13/2023',y:[289.50,298.00,289.00,290.50]},{ x:'04/14/2023',y:[294.50,304.50,291.50,295.50]},{ x:'04/17/2023',y:[297.00,307.50,297.00,304.50]},{ x:'04/18/2023',y:[313.50,322.50,308.50,316.00]},{ x:'04/19/2023',y:[319.50,347.50,319.50,347.50]},{ x:'04/20/2023',y:[350.00,351.50,313.00,313.00]},{ x:'04/21/2023',y:[305.00,314.50,301.00,306.50]},{ x:'04/24/2023',y:[304.50,324.50,304.00,318.50]},{ x:'04/25/2023',y:[319.00,335.00,303.00,315.50]},{ x:'04/26/2023',y:[313.00,314.50,298.00,300.00]},{ x:'04/27/2023',y:[299.00,311.00,295.50,309.00]},{ x:'04/28/2023',y:[314.00,320.00,309.00,317.00]},{ x:'05/02/2023',y:[320.00,322.50,314.50,317.00]},{ x:'05/03/2023',y:[317.00,323.00,316.00,321.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2727 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());