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/22/2023',y:[200.50,201.50,199.50,200.00]},{ x:'02/23/2023',y:[200.00,204.50,199.00,204.50]},{ x:'02/24/2023',y:[219.00,224.50,214.50,224.50]},{ x:'03/01/2023',y:[222.00,223.00,216.00,217.50]},{ x:'03/02/2023',y:[217.00,222.50,216.00,222.00]},{ x:'03/03/2023',y:[223.00,226.00,218.50,223.50]},{ x:'03/06/2023',y:[226.50,226.50,222.00,222.00]},{ x:'03/07/2023',y:[218.00,228.00,218.00,224.00]},{ x:'03/08/2023',y:[224.00,227.50,223.50,226.50]},{ x:'03/09/2023',y:[226.50,248.00,226.50,241.00]},{ x:'03/10/2023',y:[240.50,254.00,237.50,241.00]},{ x:'03/13/2023',y:[245.50,246.50,229.00,235.50]},{ x:'03/14/2023',y:[233.50,234.50,228.00,229.00]},{ x:'03/15/2023',y:[235.00,243.00,233.00,236.50]},{ x:'03/16/2023',y:[233.50,243.00,233.50,243.00]},{ x:'03/17/2023',y:[244.00,263.00,239.00,255.50]},{ x:'03/20/2023',y:[265.00,265.00,252.50,259.00]},{ x:'03/21/2023',y:[262.50,278.00,262.00,266.00]},{ x:'03/22/2023',y:[269.00,276.00,267.00,271.00]},{ x:'03/23/2023',y:[273.50,280.00,272.50,274.50]},{ x:'03/24/2023',y:[280.50,301.50,280.00,301.50]},{ x:'03/27/2023',y:[309.50,311.00,286.00,286.00]},{ x:'03/28/2023',y:[293.00,302.50,289.00,292.00]},{ x:'03/29/2023',y:[296.00,300.00,288.50,294.00]},{ x:'03/30/2023',y:[305.00,323.00,303.00,323.00]},{ x:'03/31/2023',y:[326.00,333.00,313.50,314.00]},{ x:'04/06/2023',y:[313.50,320.50,306.50,320.50]},{ x:'04/07/2023',y:[318.00,319.50,308.00,308.00]},{ x:'04/10/2023',y:[303.50,308.00,300.00,300.50]},{ x:'04/11/2023',y:[306.00,321.00,306.00,316.00]},{ x:'04/12/2023',y:[317.00,330.00,313.50,322.00]},{ x:'04/13/2023',y:[319.50,325.00,313.00,319.00]},{ x:'04/14/2023',y:[324.50,326.00,315.00,315.00]},{ x:'04/17/2023',y:[315.00,319.50,306.50,309.50]},{ x:'04/18/2023',y:[312.00,313.50,304.50,305.50]},{ x:'04/19/2023',y:[308.50,313.00,305.00,306.00]},{ x:'04/20/2023',y:[306.00,309.50,297.00,297.00]},{ x:'04/21/2023',y:[297.00,300.00,283.00,286.00]},{ x:'04/24/2023',y:[283.00,293.50,283.00,289.00]},{ x:'04/25/2023',y:[294.00,294.00,278.50,280.50]},{ x:'04/26/2023',y:[274.00,285.50,274.00,285.00]},{ x:'04/27/2023',y:[284.50,299.00,282.00,293.00]},{ x:'04/28/2023',y:[296.00,301.00,290.50,299.00]},{ x:'05/02/2023',y:[299.00,302.00,293.00,296.00]},{ x:'05/03/2023',y:[291.50,297.50,291.50,297.50]},{ x:'05/04/2023',y:[297.50,299.00,292.00,293.50]},{ x:'05/05/2023',y:[293.00,296.50,288.50,288.50]},{ x:'05/08/2023',y:[290.50,302.50,290.50,293.00]},{ x:'05/09/2023',y:[293.00,297.00,285.50,286.50]},{ x:'05/10/2023',y:[286.00,286.00,280.00,284.50]},{ x:'05/11/2023',y:[284.50,284.50,274.50,279.00]},{ x:'05/12/2023',y:[277.50,294.00,276.50,290.50]},{ x:'05/15/2023',y:[287.00,297.50,287.00,290.00]},{ x:'05/16/2023',y:[297.50,307.50,296.00,299.50]},{ x:'05/17/2023',y:[302.50,307.00,299.00,302.00]},{ x:'05/18/2023',y:[310.00,312.50,302.50,304.50]},{ x:'05/19/2023',y:[310.00,310.00,300.50,307.50]},{ x:'05/22/2023',y:[311.50,323.00,302.50,304.00]},{ x:'05/23/2023',y:[305.00,312.00,298.50,306.50]},{ x:'05/24/2023',y:[307.00,309.00,301.00,304.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5289 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());