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:'01/23/2024',y:[184.00,188.00,184.00,185.00]},{ x:'01/24/2024',y:[187.00,187.00,183.00,183.50]},{ x:'01/25/2024',y:[184.00,184.00,180.00,181.00]},{ x:'01/26/2024',y:[180.50,181.00,177.00,179.00]},{ x:'01/29/2024',y:[179.00,182.00,178.00,181.00]},{ x:'01/30/2024',y:[182.50,182.50,178.00,180.50]},{ x:'01/31/2024',y:[182.00,183.00,179.00,180.00]},{ x:'02/01/2024',y:[180.00,181.00,176.00,178.00]},{ x:'02/02/2024',y:[178.00,178.00,173.00,176.00]},{ x:'02/05/2024',y:[176.00,177.00,174.00,176.50]},{ x:'02/15/2024',y:[176.50,181.00,176.50,180.50]},{ x:'02/16/2024',y:[180.50,182.00,177.00,180.00]},{ x:'02/19/2024',y:[181.50,191.50,181.00,187.50]},{ x:'02/20/2024',y:[186.00,190.00,184.00,187.50]},{ x:'02/21/2024',y:[190.00,190.00,186.00,187.00]},{ x:'02/22/2024',y:[189.00,189.00,185.00,187.50]},{ x:'02/23/2024',y:[187.50,203.50,187.50,199.00]},{ x:'02/26/2024',y:[201.50,206.00,194.00,195.00]},{ x:'02/27/2024',y:[199.00,201.50,192.50,200.00]},{ x:'02/29/2024',y:[204.00,204.00,195.50,196.00]},{ x:'03/01/2024',y:[196.00,199.50,194.00,195.50]},{ x:'03/04/2024',y:[198.00,198.50,193.50,194.00]},{ x:'03/05/2024',y:[194.00,209.50,193.00,208.50]},{ x:'03/06/2024',y:[207.00,217.50,205.50,206.50]},{ x:'03/07/2024',y:[210.00,223.00,210.00,219.00]},{ x:'03/08/2024',y:[221.50,226.00,206.50,216.50]},{ x:'03/11/2024',y:[222.50,222.50,211.00,215.00]},{ x:'03/12/2024',y:[218.50,235.00,216.50,231.50]},{ x:'03/13/2024',y:[237.50,238.00,223.00,225.00]},{ x:'03/14/2024',y:[227.00,227.00,212.50,214.50]},{ x:'03/15/2024',y:[210.50,214.50,207.50,210.00]},{ x:'03/18/2024',y:[209.00,230.00,209.00,228.50]},{ x:'03/19/2024',y:[228.00,243.50,226.50,238.00]},{ x:'03/20/2024',y:[236.00,238.00,225.50,229.50]},{ x:'03/21/2024',y:[239.50,240.00,222.00,227.00]},{ x:'03/22/2024',y:[230.00,236.00,226.00,227.00]},{ x:'03/25/2024',y:[229.00,237.50,227.00,228.00]},{ x:'03/26/2024',y:[231.00,231.50,219.00,225.00]},{ x:'03/27/2024',y:[227.00,233.50,225.00,233.00]},{ x:'03/28/2024',y:[237.00,243.00,232.50,238.50]},{ x:'03/29/2024',y:[237.50,241.00,232.00,236.50]},{ x:'04/01/2024',y:[236.50,240.50,235.00,235.00]},{ x:'04/02/2024',y:[238.50,240.50,231.50,231.50]},{ x:'04/03/2024',y:[229.00,234.50,226.00,230.00]},{ x:'04/08/2024',y:[231.50,237.00,224.00,230.50]},{ x:'04/09/2024',y:[231.00,232.50,227.50,227.50]},{ x:'04/10/2024',y:[228.00,230.00,225.50,226.00]},{ x:'04/11/2024',y:[222.00,245.00,221.50,231.00]},{ x:'04/12/2024',y:[234.50,254.00,234.00,254.00]},{ x:'04/15/2024',y:[257.00,277.50,251.50,256.00]},{ x:'04/16/2024',y:[252.50,264.50,243.50,247.00]},{ x:'04/17/2024',y:[253.00,266.00,250.50,266.00]},{ x:'04/18/2024',y:[270.00,292.50,265.00,292.50]},{ x:'04/19/2024',y:[279.00,290.50,263.50,270.00]},{ x:'04/22/2024',y:[260.00,262.00,243.50,247.50]},{ x:'04/23/2024',y:[250.00,254.00,248.00,251.50]},{ x:'04/24/2024',y:[258.00,268.00,258.00,268.00]},{ x:'04/25/2024',y:[266.00,270.00,265.00,266.00]},{ x:'04/26/2024',y:[271.50,271.50,261.00,262.50]},{ x:'04/29/2024',y:[263.00,264.50,255.00,256.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4768 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());