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/30/2023',y:[134.00,134.50,131.50,133.00]},{ x:'03/31/2023',y:[133.50,134.00,132.00,133.50]},{ x:'04/06/2023',y:[133.50,138.00,132.50,138.00]},{ x:'04/07/2023',y:[138.00,138.50,134.00,134.00]},{ x:'04/10/2023',y:[134.00,137.00,133.00,136.50]},{ x:'04/11/2023',y:[137.00,137.50,134.50,135.50]},{ x:'04/12/2023',y:[136.00,137.00,134.50,136.50]},{ x:'04/13/2023',y:[135.50,136.00,131.50,132.00]},{ x:'04/14/2023',y:[133.50,135.50,132.50,134.50]},{ x:'04/17/2023',y:[135.00,136.50,134.50,135.00]},{ x:'04/18/2023',y:[136.00,137.00,134.50,135.50]},{ x:'04/19/2023',y:[134.00,136.00,132.00,134.50]},{ x:'04/20/2023',y:[134.50,135.00,132.50,134.00]},{ x:'04/21/2023',y:[133.50,135.00,131.00,132.00]},{ x:'04/24/2023',y:[132.00,135.00,131.50,135.00]},{ x:'04/25/2023',y:[135.00,135.00,128.50,129.00]},{ x:'04/26/2023',y:[129.00,130.00,127.50,129.00]},{ x:'04/27/2023',y:[129.00,132.50,128.50,131.50]},{ 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]} ] }], 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());