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/28/2023',y:[132.50,133.00,130.50,131.00]},{ x:'05/02/2023',y:[133.00,136.00,132.00,135.00]},{ x:'05/03/2023',y:[134.00,136.00,131.00,132.50]},{ x:'05/04/2023',y:[132.50,137.00,131.00,136.00]},{ x:'05/05/2023',y:[136.50,138.00,135.50,137.00]},{ x:'05/08/2023',y:[137.50,138.00,135.00,135.00]},{ x:'05/09/2023',y:[137.50,140.00,136.50,139.00]},{ x:'05/10/2023',y:[137.00,140.50,134.50,139.50]},{ x:'05/11/2023',y:[139.50,142.00,138.50,141.00]},{ x:'05/12/2023',y:[138.00,141.00,137.00,139.00]},{ x:'05/15/2023',y:[138.00,139.50,135.50,135.50]},{ x:'05/16/2023',y:[139.00,146.00,139.00,144.50]},{ x:'05/17/2023',y:[145.00,150.50,145.00,149.50]},{ x:'05/18/2023',y:[152.50,159.50,151.50,159.50]},{ x:'05/19/2023',y:[163.00,164.00,157.50,164.00]},{ x:'05/22/2023',y:[163.50,164.50,159.00,161.50]},{ x:'05/23/2023',y:[160.50,163.00,159.00,160.00]},{ x:'05/24/2023',y:[161.50,167.50,160.50,165.00]},{ x:'05/25/2023',y:[181.00,181.50,176.00,180.00]},{ x:'05/26/2023',y:[184.00,197.50,180.00,185.00]},{ x:'05/29/2023',y:[188.00,191.50,178.50,186.00]},{ x:'05/30/2023',y:[187.00,188.00,180.50,184.50]},{ x:'05/31/2023',y:[185.50,188.00,183.00,186.50]},{ x:'06/01/2023',y:[184.50,191.00,182.50,190.50]},{ x:'06/02/2023',y:[195.00,209.50,192.00,203.00]},{ x:'06/05/2023',y:[201.00,213.00,197.50,211.50]},{ x:'06/06/2023',y:[211.50,213.50,206.00,209.00]},{ x:'06/07/2023',y:[209.00,225.50,207.00,224.50]},{ x:'06/08/2023',y:[220.00,223.00,217.00,219.00]},{ x:'06/09/2023',y:[223.00,240.50,223.00,240.50]},{ x:'06/12/2023',y:[242.00,259.00,240.50,243.00]},{ x:'06/13/2023',y:[249.50,252.00,237.50,245.00]},{ x:'06/14/2023',y:[241.00,247.50,239.50,242.50]},{ x:'06/15/2023',y:[246.00,252.00,241.50,246.00]},{ x:'06/16/2023',y:[245.00,261.50,244.00,254.50]},{ x:'06/19/2023',y:[253.00,255.00,248.00,252.50]},{ x:'06/20/2023',y:[249.50,259.00,248.50,256.00]},{ x:'06/21/2023',y:[256.50,261.00,254.00,260.00]},{ x:'06/26/2023',y:[255.50,256.50,240.50,243.50]},{ x:'06/27/2023',y:[240.00,242.50,230.00,233.00]},{ x:'06/28/2023',y:[238.00,239.00,227.00,227.00]},{ x:'06/29/2023',y:[233.00,237.00,226.00,233.00]},{ x:'06/30/2023',y:[232.50,243.50,229.00,243.50]},{ x:'07/03/2023',y:[248.00,256.50,245.00,248.00]},{ x:'07/04/2023',y:[250.00,272.50,248.00,272.50]},{ x:'07/05/2023',y:[270.00,272.00,254.00,265.00]},{ x:'07/06/2023',y:[257.50,271.50,256.50,264.00]},{ x:'07/07/2023',y:[262.50,269.00,253.00,261.00]},{ x:'07/10/2023',y:[263.00,280.50,261.00,273.50]},{ x:'07/11/2023',y:[277.00,282.50,273.50,276.50]},{ x:'07/12/2023',y:[281.00,304.00,280.50,304.00]},{ x:'07/13/2023',y:[312.00,333.00,290.50,295.50]},{ x:'07/14/2023',y:[305.00,309.50,281.50,296.00]},{ x:'07/17/2023',y:[290.50,306.50,290.00,293.50]},{ x:'07/18/2023',y:[300.00,319.00,286.50,312.50]},{ x:'07/19/2023',y:[317.00,321.00,297.50,298.50]},{ x:'07/20/2023',y:[300.00,308.00,297.00,305.00]},{ x:'07/21/2023',y:[291.50,332.00,291.00,322.50]},{ x:'07/24/2023',y:[325.00,354.50,321.00,354.50]},{ x:'07/25/2023',y:[360.00,382.50,348.00,352.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2376 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());