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/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]},{ x:'05/04/2023',y:[322.00,327.50,316.50,326.00]},{ x:'05/05/2023',y:[326.00,336.00,326.00,327.50]},{ x:'05/08/2023',y:[330.00,342.00,329.00,331.50]},{ x:'05/09/2023',y:[335.00,338.50,323.00,324.00]},{ x:'05/10/2023',y:[330.00,338.00,321.00,325.00]},{ x:'05/11/2023',y:[325.50,329.00,313.00,317.00]},{ x:'05/12/2023',y:[317.00,328.00,316.00,326.50]},{ x:'05/15/2023',y:[323.50,327.00,316.50,319.00]},{ x:'05/16/2023',y:[324.00,326.00,314.50,314.50]},{ x:'05/17/2023',y:[318.00,323.00,317.50,321.00]},{ x:'05/18/2023',y:[325.00,325.50,308.00,313.50]},{ x:'05/19/2023',y:[314.50,320.50,309.00,313.00]},{ x:'05/22/2023',y:[313.50,318.00,310.50,318.00]},{ x:'05/23/2023',y:[319.00,324.00,312.50,320.50]},{ x:'05/24/2023',y:[320.00,328.00,319.00,325.00]},{ x:'05/25/2023',y:[324.00,328.00,316.00,328.00]} ] }], 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());