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:'10/26/2023',y:[167.00,169.50,162.50,164.00]},{ x:'10/27/2023',y:[165.00,166.50,160.00,160.00]},{ x:'10/31/2023',y:[160.50,162.00,150.00,150.00]},{ x:'11/01/2023',y:[153.00,153.50,146.00,149.50]},{ x:'11/02/2023',y:[153.50,157.50,152.50,154.50]},{ x:'11/03/2023',y:[155.50,156.00,150.00,150.00]},{ x:'11/06/2023',y:[153.50,162.00,152.50,159.00]},{ x:'11/07/2023',y:[158.00,161.50,157.50,158.50]},{ x:'11/08/2023',y:[159.50,162.00,157.50,157.50]},{ x:'11/09/2023',y:[153.00,154.50,150.00,150.00]},{ x:'11/10/2023',y:[151.00,154.00,150.50,152.50]},{ x:'11/13/2023',y:[155.50,162.00,154.50,157.50]},{ x:'11/14/2023',y:[159.50,170.00,158.00,169.50]},{ x:'11/15/2023',y:[172.00,175.00,169.50,171.50]},{ x:'11/16/2023',y:[172.50,173.00,168.50,171.50]},{ x:'11/17/2023',y:[172.50,176.00,170.50,170.50]},{ x:'11/20/2023',y:[172.50,178.50,172.00,173.00]},{ x:'11/21/2023',y:[174.50,178.00,171.50,172.00]},{ x:'11/22/2023',y:[171.00,182.50,169.00,178.00]},{ x:'11/23/2023',y:[177.50,180.00,173.00,175.50]},{ x:'11/24/2023',y:[175.50,179.00,173.00,178.00]},{ x:'11/27/2023',y:[177.00,177.50,166.00,168.00]},{ x:'11/28/2023',y:[167.50,174.50,167.50,170.00]},{ x:'11/29/2023',y:[171.00,177.00,171.00,174.50]},{ x:'11/30/2023',y:[173.50,177.50,170.00,177.00]},{ x:'12/01/2023',y:[177.00,184.00,174.00,184.00]},{ x:'12/04/2023',y:[185.50,195.00,183.00,188.50]},{ x:'12/05/2023',y:[188.00,193.00,184.50,189.00]},{ x:'12/06/2023',y:[191.00,194.00,189.00,191.00]},{ x:'12/07/2023',y:[191.50,193.00,186.00,187.00]},{ x:'12/08/2023',y:[189.50,198.50,185.50,185.50]},{ x:'12/11/2023',y:[186.00,195.50,185.50,194.50]},{ x:'12/12/2023',y:[193.50,196.00,190.50,192.00]},{ x:'12/18/2023',y:[219.00,227.00,214.50,216.00]},{ x:'12/19/2023',y:[218.00,224.50,218.00,221.00]},{ x:'01/10/2024',y:[259.50,266.00,257.00,263.50]},{ x:'01/11/2024',y:[265.50,280.00,265.50,280.00]},{ x:'01/12/2024',y:[280.00,285.00,272.50,273.00]},{ x:'01/15/2024',y:[275.00,287.00,272.00,286.00]},{ x:'01/16/2024',y:[284.00,289.00,280.00,281.00]},{ x:'01/17/2024',y:[281.50,284.00,254.50,260.50]},{ x:'01/18/2024',y:[261.50,266.00,251.00,261.50]},{ x:'01/19/2024',y:[266.00,269.00,255.50,262.50]},{ x:'01/22/2024',y:[263.50,267.50,258.50,258.50]},{ x:'01/23/2024',y:[259.50,262.00,253.50,258.50]},{ x:'01/24/2024',y:[261.00,274.00,259.00,262.50]},{ x:'01/25/2024',y:[263.00,266.00,249.00,250.00]},{ x:'01/26/2024',y:[247.50,250.00,243.50,245.50]},{ x:'01/29/2024',y:[245.50,254.00,243.50,250.50]},{ x:'01/30/2024',y:[250.50,254.00,247.00,247.50]},{ x:'01/31/2024',y:[250.00,261.00,248.00,253.50]},{ x:'02/01/2024',y:[252.00,258.00,237.50,239.50]},{ x:'02/02/2024',y:[242.00,242.50,231.50,240.00]},{ x:'02/05/2024',y:[239.00,244.50,237.50,240.50]},{ x:'02/15/2024',y:[248.50,260.50,246.50,258.50]},{ x:'02/16/2024',y:[260.00,265.00,256.00,262.50]},{ x:'02/19/2024',y:[264.50,268.00,262.00,263.00]},{ x:'02/20/2024',y:[260.00,264.00,257.50,260.00]},{ x:'02/21/2024',y:[260.00,263.00,256.00,256.00]},{ x:'02/22/2024',y:[260.00,281.50,259.00,277.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6231 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());