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:'06/29/2023',y:[152.00,154.50,150.50,153.50]},{ x:'06/30/2023',y:[152.50,152.50,146.50,147.50]},{ x:'07/03/2023',y:[149.00,149.00,146.00,149.00]},{ x:'07/04/2023',y:[150.00,150.50,148.00,149.00]},{ x:'07/05/2023',y:[150.00,150.00,146.00,146.00]},{ x:'07/06/2023',y:[145.00,151.00,145.00,149.50]},{ x:'07/07/2023',y:[150.50,150.50,148.00,149.50]},{ x:'07/10/2023',y:[154.00,160.50,153.50,160.50]},{ x:'07/11/2023',y:[166.50,167.00,163.00,166.00]},{ x:'07/12/2023',y:[170.00,182.50,168.00,179.50]},{ x:'07/13/2023',y:[183.00,183.00,172.00,182.00]},{ x:'07/14/2023',y:[189.50,200.00,188.50,200.00]},{ x:'07/17/2023',y:[205.00,220.00,201.00,217.50]},{ x:'07/18/2023',y:[218.50,218.50,205.00,205.00]},{ x:'07/19/2023',y:[200.00,200.00,192.00,194.50]},{ x:'07/20/2023',y:[193.00,207.00,193.00,207.00]},{ x:'07/21/2023',y:[205.00,217.00,204.00,216.00]},{ x:'07/24/2023',y:[215.00,215.00,200.00,202.50]},{ x:'07/25/2023',y:[207.00,207.00,198.00,206.00]},{ x:'07/26/2023',y:[206.50,214.00,206.50,212.00]},{ x:'07/27/2023',y:[212.00,229.50,210.00,225.00]},{ x:'07/28/2023',y:[225.00,230.00,221.00,229.00]},{ x:'07/31/2023',y:[235.00,239.00,229.00,239.00]},{ x:'08/01/2023',y:[248.00,249.00,215.50,215.50]},{ x:'08/02/2023',y:[217.00,221.00,201.00,204.50]},{ x:'08/04/2023',y:[203.50,219.50,197.00,213.00]},{ x:'08/07/2023',y:[215.00,226.00,205.50,210.00]},{ x:'08/08/2023',y:[209.00,223.50,202.00,215.00]},{ x:'08/09/2023',y:[212.50,232.50,212.50,224.00]},{ x:'08/10/2023',y:[223.00,229.00,203.50,208.50]},{ x:'08/11/2023',y:[214.50,218.00,204.00,211.50]},{ x:'08/14/2023',y:[207.50,212.00,190.50,192.50]},{ x:'08/15/2023',y:[196.00,211.50,194.00,211.50]},{ x:'08/16/2023',y:[215.00,221.00,208.00,220.50]},{ x:'08/17/2023',y:[216.00,240.00,216.00,236.00]},{ x:'08/18/2023',y:[241.00,247.50,220.50,229.00]},{ x:'08/21/2023',y:[237.00,251.50,234.00,251.50]},{ x:'08/22/2023',y:[262.00,276.50,256.00,276.50]},{ x:'08/23/2023',y:[278.50,291.00,265.50,276.50]},{ x:'08/24/2023',y:[285.00,301.50,277.50,280.50]},{ x:'08/25/2023',y:[282.50,293.50,279.50,286.50]},{ x:'08/28/2023',y:[289.50,291.50,268.00,275.00]},{ x:'08/29/2023',y:[284.00,293.50,278.50,289.00]},{ x:'08/30/2023',y:[292.00,296.00,285.50,293.00]},{ x:'08/31/2023',y:[293.00,300.00,289.50,299.50]},{ x:'09/01/2023',y:[310.00,324.00,290.00,292.50]},{ x:'09/04/2023',y:[295.00,311.00,294.50,300.00]},{ x:'09/05/2023',y:[296.00,299.50,285.00,289.00]},{ x:'09/06/2023',y:[292.50,295.50,286.00,290.00]},{ x:'09/07/2023',y:[286.00,292.50,286.00,290.50]},{ x:'09/08/2023',y:[291.00,298.00,287.50,293.00]},{ x:'09/11/2023',y:[295.00,298.00,276.50,277.50]},{ x:'09/12/2023',y:[272.00,285.50,266.00,283.00]},{ x:'09/13/2023',y:[281.00,281.50,264.50,266.00]},{ x:'09/14/2023',y:[270.00,271.00,253.00,258.00]},{ x:'09/15/2023',y:[262.00,263.50,254.50,257.50]},{ x:'09/18/2023',y:[255.00,258.50,245.50,246.50]},{ x:'09/19/2023',y:[247.50,250.00,236.00,237.50]},{ x:'09/20/2023',y:[238.50,250.00,233.00,248.00]},{ x:'09/21/2023',y:[247.50,251.50,238.50,244.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1519 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());