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/20/2023',y:[245.00,251.50,244.50,250.50]},{ x:'02/21/2023',y:[251.00,257.00,251.00,254.00]},{ x:'02/22/2023',y:[253.00,263.50,249.00,259.50]},{ x:'02/23/2023',y:[259.50,263.50,256.50,261.50]},{ x:'02/24/2023',y:[263.50,263.50,256.00,256.00]},{ x:'03/01/2023',y:[252.50,256.50,251.00,253.00]},{ x:'03/02/2023',y:[257.00,257.00,253.00,255.50]},{ x:'03/03/2023',y:[256.00,265.00,256.00,264.50]},{ x:'03/06/2023',y:[274.00,283.50,270.00,277.50]},{ x:'03/07/2023',y:[275.00,278.00,275.00,277.00]},{ x:'03/08/2023',y:[276.00,282.50,274.50,281.00]},{ x:'03/09/2023',y:[282.00,285.00,278.00,281.00]},{ x:'03/10/2023',y:[281.00,281.00,266.00,266.00]},{ x:'03/13/2023',y:[263.00,275.00,259.00,270.00]},{ x:'03/14/2023',y:[266.00,269.50,266.00,268.00]},{ x:'03/15/2023',y:[273.00,284.00,270.50,280.00]},{ x:'03/16/2023',y:[277.00,277.00,270.00,274.00]},{ x:'03/17/2023',y:[278.00,296.00,278.00,295.00]},{ x:'03/20/2023',y:[298.00,324.50,292.00,324.50]},{ x:'03/21/2023',y:[325.00,340.50,320.00,323.00]},{ x:'03/22/2023',y:[329.50,339.00,326.00,329.00]},{ x:'03/23/2023',y:[324.50,327.50,316.00,319.00]},{ x:'03/24/2023',y:[322.00,329.00,314.00,315.50]},{ x:'03/27/2023',y:[311.50,320.00,304.00,307.50]},{ x:'03/28/2023',y:[310.00,314.50,296.00,301.00]},{ x:'03/29/2023',y:[305.00,307.50,294.00,301.50]},{ x:'03/30/2023',y:[308.50,308.50,304.00,305.00]},{ x:'03/31/2023',y:[305.00,312.50,303.50,308.50]},{ x:'04/06/2023',y:[305.00,313.00,304.00,311.00]},{ x:'04/07/2023',y:[309.50,311.00,307.00,308.00]},{ x:'04/10/2023',y:[309.00,312.00,306.00,309.00]},{ x:'04/11/2023',y:[310.00,321.00,309.50,316.00]},{ x:'04/12/2023',y:[314.00,315.00,310.00,312.00]},{ x:'04/13/2023',y:[308.00,312.50,307.50,308.50]},{ x:'04/14/2023',y:[310.50,315.50,310.50,311.50]},{ x:'04/17/2023',y:[310.00,322.00,310.00,319.00]},{ x:'04/18/2023',y:[318.50,327.00,316.00,322.00]},{ x:'04/19/2023',y:[322.00,322.00,316.50,317.00]},{ x:'04/20/2023',y:[319.50,319.50,310.00,311.00]},{ x:'04/21/2023',y:[318.00,341.00,318.00,336.50]},{ x:'04/24/2023',y:[330.00,354.00,319.00,337.00]},{ x:'04/25/2023',y:[345.00,355.00,334.50,343.00]},{ x:'04/26/2023',y:[349.00,350.00,330.00,337.50]},{ x:'04/27/2023',y:[336.50,338.50,328.00,328.50]},{ x:'04/28/2023',y:[334.50,335.00,330.00,334.00]},{ x:'05/02/2023',y:[338.00,347.00,334.50,346.50]},{ x:'05/03/2023',y:[345.50,350.50,338.50,339.00]},{ x:'05/04/2023',y:[344.50,344.50,333.00,337.50]},{ x:'05/05/2023',y:[335.00,348.50,335.00,346.50]},{ x:'05/08/2023',y:[347.50,355.00,333.00,338.00]},{ x:'05/09/2023',y:[350.50,350.50,340.00,343.00]},{ x:'05/10/2023',y:[349.50,358.00,343.00,351.00]},{ x:'05/11/2023',y:[360.00,382.00,352.00,374.00]},{ x:'05/12/2023',y:[370.50,379.50,370.00,374.00]},{ x:'05/15/2023',y:[373.50,373.50,361.50,366.00]},{ x:'05/16/2023',y:[368.00,373.00,363.50,368.00]},{ x:'05/17/2023',y:[366.50,376.50,364.00,372.00]},{ x:'05/18/2023',y:[378.00,389.00,373.50,373.50]},{ x:'05/19/2023',y:[383.00,400.00,368.50,374.00]},{ x:'05/22/2023',y:[379.50,391.00,377.00,388.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3131 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());