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/22/2024',y:[114.00,115.50,112.00,115.00]},{ x:'01/23/2024',y:[116.00,123.00,115.50,121.00]},{ x:'01/24/2024',y:[123.00,126.00,121.00,122.50]},{ x:'01/25/2024',y:[122.00,122.50,118.50,120.00]},{ x:'01/26/2024',y:[121.00,123.50,118.00,118.50]},{ x:'01/29/2024',y:[118.00,122.00,118.00,121.00]},{ x:'01/30/2024',y:[121.00,123.00,119.00,119.00]},{ x:'01/31/2024',y:[119.00,123.00,118.00,121.50]},{ x:'02/01/2024',y:[122.00,131.00,121.50,131.00]},{ x:'02/02/2024',y:[131.50,133.00,124.50,124.50]},{ x:'02/05/2024',y:[125.00,126.00,122.00,122.00]},{ x:'02/15/2024',y:[123.50,128.00,122.00,125.00]},{ x:'02/16/2024',y:[130.00,137.50,129.00,137.50]},{ x:'02/19/2024',y:[139.00,150.00,137.50,148.50]},{ x:'02/20/2024',y:[150.00,155.00,143.00,146.50]},{ x:'02/21/2024',y:[148.50,161.00,148.00,161.00]},{ x:'02/22/2024',y:[163.00,177.00,161.00,172.00]},{ x:'02/23/2024',y:[173.00,179.50,170.50,174.00]},{ x:'02/26/2024',y:[180.00,185.50,173.00,175.50]},{ x:'02/27/2024',y:[173.00,178.50,169.50,171.50]},{ x:'02/29/2024',y:[172.50,187.50,170.00,187.00]},{ x:'03/01/2024',y:[186.00,189.00,179.50,184.00]},{ x:'03/04/2024',y:[184.00,186.50,180.00,184.50]},{ x:'03/05/2024',y:[186.00,189.00,176.00,182.50]},{ x:'03/06/2024',y:[182.00,183.00,179.00,180.00]},{ x:'03/07/2024',y:[182.00,183.50,175.00,177.50]},{ x:'03/08/2024',y:[179.00,179.00,163.00,165.00]},{ x:'03/11/2024',y:[167.00,168.00,163.00,168.00]},{ x:'03/12/2024',y:[170.00,184.50,162.00,181.50]},{ x:'03/13/2024',y:[184.50,199.50,183.00,199.50]},{ x:'03/14/2024',y:[202.00,214.00,192.50,208.50]},{ x:'03/15/2024',y:[210.00,217.00,202.00,205.00]},{ x:'03/18/2024',y:[205.50,225.50,201.00,225.50]},{ x:'03/19/2024',y:[228.00,245.00,227.00,239.00]},{ x:'03/20/2024',y:[240.50,248.00,235.00,242.50]},{ x:'03/21/2024',y:[245.50,266.50,244.50,266.50]},{ x:'03/22/2024',y:[275.50,280.00,268.50,274.00]},{ x:'03/25/2024',y:[269.00,300.00,265.00,299.00]},{ x:'03/26/2024',y:[315.00,324.50,296.00,320.00]},{ x:'03/27/2024',y:[314.00,317.00,289.50,295.50]},{ x:'03/28/2024',y:[295.50,299.00,277.50,280.00]},{ x:'03/29/2024',y:[283.00,293.50,278.00,292.00]},{ x:'04/01/2024',y:[298.00,307.00,293.50,307.00]},{ x:'04/02/2024',y:[310.00,315.00,298.00,308.00]},{ x:'04/03/2024',y:[302.00,309.50,301.50,305.50]},{ x:'04/08/2024',y:[310.00,320.00,310.00,313.50]},{ x:'04/09/2024',y:[317.50,344.50,317.50,344.50]},{ x:'04/10/2024',y:[346.00,358.00,311.00,316.00]},{ x:'04/11/2024',y:[318.50,327.00,301.50,304.00]},{ x:'04/12/2024',y:[310.00,334.00,307.00,334.00]},{ x:'04/15/2024',y:[337.00,350.00,309.00,309.00]},{ x:'04/16/2024',y:[300.00,322.50,297.00,307.00]},{ x:'04/17/2024',y:[320.00,337.50,318.00,337.50]},{ x:'04/18/2024',y:[336.00,354.00,329.50,333.50]},{ x:'04/19/2024',y:[337.00,353.00,309.00,327.50]},{ x:'04/22/2024',y:[338.00,343.00,302.50,314.00]},{ x:'04/23/2024',y:[325.00,327.00,301.50,308.50]},{ x:'04/24/2024',y:[313.50,317.50,300.00,316.00]},{ x:'04/25/2024',y:[313.00,322.50,306.00,316.50]},{ x:'04/26/2024',y:[318.50,323.00,302.00,305.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1503 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());