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/01/2024',y:[159.50,171.50,159.00,169.50]},{ x:'04/02/2024',y:[169.00,173.00,167.00,170.00]},{ x:'04/03/2024',y:[169.50,172.00,167.00,168.00]},{ x:'04/08/2024',y:[170.00,173.00,169.00,172.00]},{ x:'04/09/2024',y:[173.50,173.50,162.50,166.50]},{ x:'04/10/2024',y:[167.00,168.00,165.50,167.50]},{ x:'04/11/2024',y:[168.00,168.00,165.00,167.50]},{ x:'04/12/2024',y:[169.00,171.00,168.00,168.50]},{ x:'04/15/2024',y:[169.00,177.00,168.00,170.50]},{ x:'04/16/2024',y:[168.00,171.50,165.50,171.00]},{ x:'04/17/2024',y:[174.00,185.00,172.00,180.50]},{ x:'04/18/2024',y:[182.00,187.00,175.00,180.50]},{ x:'04/19/2024',y:[179.00,184.50,172.00,182.50]},{ x:'04/22/2024',y:[185.00,185.00,176.00,179.50]},{ x:'04/23/2024',y:[182.00,185.50,177.50,179.50]},{ x:'04/24/2024',y:[185.00,197.00,179.00,196.50]},{ x:'04/25/2024',y:[195.00,202.00,193.00,197.00]},{ x:'04/26/2024',y:[195.50,199.50,192.50,197.50]},{ 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]} ] }], 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());