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:'04/29/2024',y:[199.00,201.50,190.00,193.00]},{ x:'04/30/2024',y:[196.00,203.50,195.00,198.00]},{ x:'05/02/2024',y:[197.50,205.50,197.50,198.50]},{ x:'05/03/2024',y:[205.50,205.50,198.00,200.00]},{ x:'05/06/2024',y:[201.00,202.00,197.00,201.50]},{ x:'05/07/2024',y:[201.50,206.00,201.50,205.50]},{ x:'05/08/2024',y:[212.00,212.50,200.00,207.00]},{ x:'05/09/2024',y:[208.00,220.00,206.00,213.00]},{ x:'05/10/2024',y:[214.00,215.50,207.00,213.00]},{ x:'05/13/2024',y:[213.50,213.50,206.00,207.50]},{ x:'05/14/2024',y:[209.50,215.50,209.50,214.50]},{ x:'05/15/2024',y:[217.50,227.50,215.50,222.00]},{ x:'05/16/2024',y:[226.00,230.00,222.50,225.50]},{ x:'05/17/2024',y:[228.50,232.00,220.00,230.00]},{ x:'05/20/2024',y:[231.50,231.50,223.50,228.00]},{ x:'05/21/2024',y:[231.50,250.50,231.50,250.50]},{ x:'05/22/2024',y:[256.00,269.50,252.00,261.00]},{ x:'05/23/2024',y:[261.00,280.00,261.00,271.00]},{ x:'05/24/2024',y:[271.00,290.00,266.00,290.00]},{ x:'06/11/2024',y:[280.50,282.50,266.00,281.50]},{ x:'06/12/2024',y:[277.50,298.00,273.00,289.00]},{ x:'06/13/2024',y:[292.00,301.00,290.00,300.00]},{ x:'06/14/2024',y:[302.50,305.50,284.00,294.00]},{ x:'06/17/2024',y:[290.00,293.00,281.00,282.00]},{ x:'06/18/2024',y:[288.00,300.00,285.00,290.00]},{ x:'06/19/2024',y:[290.00,290.50,284.00,286.00]},{ x:'06/20/2024',y:[288.50,289.00,279.00,286.00]},{ x:'06/21/2024',y:[286.00,296.50,282.00,291.00]},{ x:'06/24/2024',y:[291.00,294.00,288.50,293.00]},{ x:'06/25/2024',y:[290.50,297.00,282.00,293.00]},{ x:'06/26/2024',y:[297.00,301.00,286.00,287.50]},{ x:'06/27/2024',y:[285.50,292.50,283.00,288.00]},{ x:'06/28/2024',y:[290.00,291.50,287.00,289.00]},{ x:'07/01/2024',y:[291.00,311.00,288.00,308.00]},{ x:'07/02/2024',y:[312.50,338.00,304.00,305.50]},{ x:'07/03/2024',y:[306.50,309.50,286.50,286.50]},{ x:'07/04/2024',y:[288.00,301.00,287.00,296.50]},{ x:'07/05/2024',y:[300.50,305.50,295.50,300.00]},{ x:'07/12/2024',y:[298.00,299.50,285.50,291.00]},{ x:'07/15/2024',y:[290.00,290.00,282.00,290.00]},{ x:'07/16/2024',y:[293.00,293.50,286.50,293.50]},{ x:'07/17/2024',y:[293.00,316.50,292.00,310.00]},{ x:'07/18/2024',y:[306.50,314.50,299.00,311.50]},{ x:'07/19/2024',y:[315.50,330.00,300.00,300.00]},{ x:'07/22/2024',y:[298.00,302.50,290.00,290.50]},{ x:'07/23/2024',y:[294.00,302.50,294.00,298.50]},{ x:'07/26/2024',y:[296.50,314.50,291.50,307.00]},{ x:'07/29/2024',y:[314.00,319.50,303.00,304.00]},{ x:'07/30/2024',y:[306.50,315.00,298.00,315.00]},{ x:'07/31/2024',y:[309.00,328.50,308.00,322.00]},{ x:'08/01/2024',y:[329.50,329.50,306.50,307.50]},{ x:'08/02/2024',y:[301.00,317.00,298.50,299.00]},{ x:'08/05/2024',y:[288.00,290.00,269.50,269.50]},{ x:'08/06/2024',y:[269.00,276.50,243.00,264.00]},{ x:'08/07/2024',y:[276.50,290.00,263.50,288.00]},{ x:'08/08/2024',y:[285.00,307.00,282.00,302.00]},{ x:'08/09/2024',y:[310.00,313.00,299.00,300.00]},{ x:'08/12/2024',y:[306.00,313.00,300.00,309.50]},{ x:'08/13/2024',y:[314.50,318.00,308.00,313.00]},{ x:'08/14/2024',y:[316.50,318.50,309.00,309.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3491 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());