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:'11/23/2023',y:[160.50,163.00,155.00,158.50]},{ x:'11/24/2023',y:[160.00,162.50,157.00,162.50]},{ x:'11/27/2023',y:[166.00,168.00,155.00,156.00]},{ x:'11/28/2023',y:[157.50,162.50,157.00,159.50]},{ x:'11/29/2023',y:[159.50,171.50,159.50,165.00]},{ x:'11/30/2023',y:[165.00,167.00,161.50,163.00]},{ x:'12/01/2023',y:[166.00,169.00,161.00,164.00]},{ x:'12/04/2023',y:[167.00,167.00,154.00,157.50]},{ x:'12/05/2023',y:[157.00,160.00,156.50,158.00]},{ x:'12/06/2023',y:[158.50,161.50,156.00,156.00]},{ x:'12/07/2023',y:[155.50,157.00,153.00,153.00]},{ x:'12/08/2023',y:[155.00,158.00,153.00,153.00]},{ x:'12/11/2023',y:[155.00,158.50,152.00,152.50]},{ x:'12/12/2023',y:[154.00,158.50,146.50,147.00]},{ x:'12/18/2023',y:[142.00,145.50,141.50,142.00]},{ x:'12/19/2023',y:[144.00,147.00,140.50,143.50]},{ x:'01/10/2024',y:[152.00,163.50,147.50,159.50]},{ x:'01/11/2024',y:[163.00,175.00,162.00,175.00]},{ x:'01/12/2024',y:[172.00,192.00,172.00,188.50]},{ x:'01/15/2024',y:[192.50,198.00,186.00,197.50]},{ x:'01/16/2024',y:[188.50,190.50,180.50,181.00]},{ x:'01/17/2024',y:[183.00,190.50,183.00,190.00]},{ x:'01/18/2024',y:[188.00,193.00,183.00,187.50]},{ x:'01/19/2024',y:[192.50,192.50,180.50,183.00]},{ x:'01/22/2024',y:[184.50,185.00,178.50,183.00]},{ x:'01/23/2024',y:[185.00,189.00,181.50,183.50]},{ x:'01/24/2024',y:[185.00,189.50,178.50,180.00]},{ x:'01/25/2024',y:[180.00,180.00,173.00,174.00]},{ x:'01/26/2024',y:[175.00,177.00,171.00,173.00]},{ x:'01/29/2024',y:[173.00,185.00,171.00,182.00]},{ x:'01/30/2024',y:[184.00,192.00,178.50,187.00]},{ x:'01/31/2024',y:[185.00,194.50,184.00,187.50]},{ x:'02/01/2024',y:[187.50,192.00,182.00,184.50]},{ x:'02/02/2024',y:[186.00,191.00,185.50,186.50]},{ x:'02/05/2024',y:[186.50,190.00,181.00,187.00]},{ x:'02/15/2024',y:[192.00,192.00,177.50,190.50]},{ x:'02/16/2024',y:[193.50,196.50,182.00,182.50]},{ x:'02/19/2024',y:[182.50,183.50,177.00,180.50]},{ x:'02/20/2024',y:[180.00,198.50,180.00,197.00]},{ x:'02/21/2024',y:[198.00,216.50,198.00,216.50]},{ x:'02/22/2024',y:[224.00,235.50,217.00,224.00]},{ x:'02/23/2024',y:[230.50,232.00,213.00,220.50]},{ x:'02/26/2024',y:[220.50,227.50,216.00,220.00]},{ x:'02/27/2024',y:[222.00,239.50,216.50,217.00]},{ x:'02/29/2024',y:[216.50,221.50,213.50,219.50]},{ x:'03/01/2024',y:[223.00,223.50,206.00,208.00]},{ x:'03/04/2024',y:[212.50,212.50,203.00,203.00]},{ x:'03/05/2024',y:[203.00,213.00,200.50,206.50]},{ x:'03/06/2024',y:[205.00,213.00,205.00,207.00]},{ x:'03/07/2024',y:[207.50,214.50,202.00,202.00]},{ x:'03/08/2024',y:[203.00,210.00,186.00,189.50]},{ x:'03/11/2024',y:[187.00,205.50,187.00,205.00]},{ x:'03/12/2024',y:[201.50,209.00,200.00,206.50]},{ x:'03/13/2024',y:[210.00,218.50,193.00,201.00]},{ x:'03/14/2024',y:[198.50,201.00,188.00,188.50]},{ x:'03/15/2024',y:[189.50,195.00,185.50,185.50]},{ x:'03/18/2024',y:[185.50,200.00,185.00,200.00]},{ x:'03/19/2024',y:[200.00,217.00,198.50,202.00]},{ x:'03/20/2024',y:[200.00,201.00,193.00,193.00]},{ x:'03/21/2024',y:[197.00,198.50,193.50,198.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6451 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());