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:'03/07/2024',y:[392.00,396.00,375.00,375.00]},{ x:'03/08/2024',y:[377.00,381.50,362.50,362.50]},{ x:'03/11/2024',y:[363.50,376.50,361.00,363.00]},{ x:'03/12/2024',y:[363.50,371.00,361.50,361.50]},{ x:'03/13/2024',y:[365.50,366.00,344.00,345.00]},{ x:'03/14/2024',y:[345.00,367.00,339.50,362.00]},{ x:'03/15/2024',y:[358.50,366.50,352.00,354.50]},{ x:'03/18/2024',y:[357.00,360.50,351.00,359.00]},{ x:'03/19/2024',y:[356.00,356.50,347.00,350.00]},{ x:'03/20/2024',y:[352.50,356.00,347.00,347.50]},{ x:'03/21/2024',y:[353.00,354.00,344.50,345.50]},{ x:'03/22/2024',y:[349.50,354.50,347.00,351.50]},{ x:'03/25/2024',y:[356.00,361.50,349.00,349.00]},{ x:'03/26/2024',y:[349.00,353.00,336.00,339.50]},{ x:'03/27/2024',y:[341.50,343.50,338.00,338.00]},{ x:'03/28/2024',y:[339.50,343.50,333.50,334.50]},{ x:'03/29/2024',y:[336.50,348.00,336.00,344.00]},{ x:'04/01/2024',y:[347.00,354.00,344.00,349.00]},{ x:'04/02/2024',y:[353.50,353.50,345.50,347.50]},{ x:'04/03/2024',y:[343.00,347.50,338.00,345.00]},{ x:'04/08/2024',y:[347.00,352.50,338.00,338.00]},{ x:'04/09/2024',y:[339.00,341.00,328.50,329.00]},{ x:'04/10/2024',y:[330.00,334.00,327.50,329.00]},{ x:'04/11/2024',y:[328.00,331.00,318.00,318.50]},{ x:'04/12/2024',y:[321.00,323.50,315.50,323.00]},{ x:'04/15/2024',y:[320.00,320.00,312.50,312.50]},{ x:'04/16/2024',y:[310.00,320.00,303.00,313.00]},{ x:'04/17/2024',y:[315.00,321.00,314.00,314.00]},{ x:'04/18/2024',y:[314.00,324.50,310.00,322.00]},{ x:'04/19/2024',y:[318.00,327.50,297.00,306.00]},{ x:'04/22/2024',y:[306.00,308.00,289.50,290.00]},{ x:'04/23/2024',y:[294.00,296.00,287.00,295.00]},{ x:'04/24/2024',y:[301.50,304.50,293.00,294.50]},{ x:'04/25/2024',y:[290.00,292.50,278.00,279.00]},{ x:'04/26/2024',y:[282.00,302.00,277.50,295.50]},{ x:'04/29/2024',y:[302.00,305.50,296.00,297.50]},{ x:'04/30/2024',y:[299.50,301.50,293.50,294.00]},{ x:'05/02/2024',y:[291.00,294.00,288.00,288.50]},{ x:'05/03/2024',y:[293.50,297.00,288.50,289.00]},{ x:'05/06/2024',y:[293.50,294.50,284.50,285.00]},{ x:'05/07/2024',y:[286.50,286.50,277.00,281.00]},{ x:'05/08/2024',y:[281.00,284.50,280.00,282.00]},{ x:'05/09/2024',y:[284.00,287.00,276.50,276.50]},{ x:'05/10/2024',y:[280.00,281.50,269.00,273.00]},{ x:'05/13/2024',y:[275.50,276.50,270.50,272.00]},{ x:'05/14/2024',y:[271.50,280.50,271.50,279.00]},{ x:'05/15/2024',y:[284.50,285.50,272.50,272.50]},{ x:'05/16/2024',y:[276.50,281.50,275.00,278.50]},{ x:'05/17/2024',y:[280.00,280.00,276.00,277.00]},{ x:'05/20/2024',y:[279.50,283.50,274.50,280.50]},{ x:'05/21/2024',y:[280.50,281.50,277.00,277.00]},{ x:'05/22/2024',y:[278.00,280.00,276.00,277.50]},{ x:'05/23/2024',y:[278.00,279.00,272.00,272.50]},{ x:'05/24/2024',y:[270.50,282.00,269.00,275.50]},{ x:'06/11/2024',y:[301.00,302.50,291.50,296.50]},{ x:'06/12/2024',y:[297.00,304.00,297.00,298.00]},{ x:'06/13/2024',y:[302.50,308.50,299.50,307.50]},{ x:'06/14/2024',y:[311.00,319.50,308.00,316.50]},{ x:'06/17/2024',y:[317.00,333.00,315.00,326.00]},{ x:'06/18/2024',y:[334.00,339.50,321.00,326.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3035 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());