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/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]},{ x:'02/23/2024',y:[280.50,289.00,263.50,264.50]},{ x:'02/26/2024',y:[264.50,267.50,256.50,258.00]},{ x:'02/27/2024',y:[258.00,269.00,254.00,267.00]},{ x:'02/29/2024',y:[271.50,293.50,270.50,293.50]},{ x:'03/01/2024',y:[299.50,318.00,277.50,312.00]},{ x:'03/04/2024',y:[315.00,323.50,302.50,303.00]},{ x:'03/05/2024',y:[307.50,307.50,295.00,296.50]},{ x:'03/06/2024',y:[290.50,299.50,286.00,291.50]},{ x:'03/07/2024',y:[293.00,298.00,282.50,284.00]},{ x:'03/08/2024',y:[286.50,293.00,270.50,271.00]},{ x:'03/11/2024',y:[275.00,277.00,265.00,265.00]},{ x:'03/12/2024',y:[265.00,271.00,264.00,266.50]},{ x:'03/13/2024',y:[269.00,269.00,258.00,258.00]},{ x:'03/14/2024',y:[256.00,264.00,254.00,258.00]},{ x:'03/15/2024',y:[259.50,278.00,257.00,270.50]} ] }], 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());