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/15/2024',y:[216.00,218.00,215.00,217.00]},{ x:'01/16/2024',y:[217.00,221.50,214.50,217.50]},{ x:'01/17/2024',y:[216.00,217.50,211.00,211.50]},{ x:'01/18/2024',y:[212.50,214.00,209.00,209.00]},{ x:'01/19/2024',y:[211.50,213.00,209.00,210.00]},{ x:'01/22/2024',y:[213.00,229.50,212.50,229.00]},{ x:'01/23/2024',y:[232.50,239.00,230.00,230.50]},{ x:'01/24/2024',y:[234.00,235.50,225.00,225.50]},{ x:'01/25/2024',y:[225.00,227.00,221.00,221.00]},{ x:'01/26/2024',y:[220.50,228.00,219.00,224.00]},{ x:'01/29/2024',y:[224.00,235.00,223.50,232.50]},{ x:'01/30/2024',y:[233.50,238.00,232.00,232.00]},{ x:'01/31/2024',y:[229.00,230.50,227.00,227.00]},{ x:'02/01/2024',y:[225.00,241.50,225.00,238.50]},{ x:'02/02/2024',y:[244.00,262.00,243.00,261.50]},{ x:'02/05/2024',y:[265.00,283.00,263.00,273.00]},{ x:'02/15/2024',y:[282.00,283.00,269.00,275.50]},{ x:'02/16/2024',y:[277.00,298.50,271.50,287.00]},{ x:'02/19/2024',y:[287.00,299.50,279.00,279.50]},{ x:'02/20/2024',y:[280.50,282.50,268.50,274.00]},{ x:'02/21/2024',y:[274.00,276.00,266.00,270.50]},{ x:'02/22/2024',y:[277.00,282.50,274.50,277.00]},{ x:'02/23/2024',y:[280.00,280.50,270.00,270.00]},{ x:'02/26/2024',y:[271.00,280.00,264.00,264.50]},{ x:'02/27/2024',y:[267.00,268.50,252.50,261.50]},{ x:'02/29/2024',y:[264.00,279.50,260.00,277.50]},{ x:'03/01/2024',y:[283.00,295.50,279.00,292.50]},{ x:'03/04/2024',y:[297.00,309.00,295.00,296.00]},{ x:'03/05/2024',y:[298.00,306.00,294.00,300.00]},{ x:'03/06/2024',y:[297.50,319.00,294.00,308.00]},{ x:'03/07/2024',y:[314.00,320.00,301.50,302.00]},{ x:'03/08/2024',y:[306.00,309.50,278.00,288.50]},{ x:'03/11/2024',y:[284.00,314.50,280.00,313.50]},{ x:'03/12/2024',y:[312.50,333.00,306.00,315.00]},{ x:'03/13/2024',y:[319.50,323.50,291.50,305.00]},{ x:'03/14/2024',y:[302.50,303.00,290.00,298.50]},{ x:'03/15/2024',y:[295.00,307.50,294.50,297.50]},{ x:'03/18/2024',y:[302.50,327.00,302.50,327.00]},{ x:'03/19/2024',y:[324.00,328.00,316.50,318.50]},{ x:'03/20/2024',y:[324.00,338.50,317.00,320.50]},{ x:'03/21/2024',y:[331.00,352.50,326.00,352.50]},{ x:'03/22/2024',y:[355.50,387.50,354.50,387.50]},{ x:'03/25/2024',y:[395.00,401.00,376.50,390.50]},{ x:'03/26/2024',y:[388.00,400.00,363.50,370.00]},{ x:'03/27/2024',y:[374.00,383.50,363.50,383.00]},{ x:'03/28/2024',y:[378.00,382.50,371.50,379.00]},{ x:'03/29/2024',y:[380.00,383.00,363.50,366.00]},{ x:'04/11/2024',y:[353.50,358.50,348.00,356.00]},{ x:'04/12/2024',y:[356.00,366.00,348.50,360.00]},{ x:'04/15/2024',y:[357.00,358.00,331.00,337.50]},{ x:'04/16/2024',y:[333.00,334.50,320.00,327.00]},{ x:'04/17/2024',y:[331.50,351.00,329.00,335.00]},{ x:'04/18/2024',y:[330.00,364.00,329.00,364.00]},{ x:'04/19/2024',y:[364.00,374.00,334.00,351.50]},{ x:'04/22/2024',y:[344.00,359.00,332.50,333.50]},{ x:'04/23/2024',y:[342.00,347.50,328.00,329.00]},{ x:'04/24/2024',y:[341.00,361.50,341.00,361.50]},{ x:'04/25/2024',y:[362.00,375.00,360.50,368.00]},{ x:'04/26/2024',y:[384.00,399.00,370.00,383.50]},{ x:'04/29/2024',y:[395.00,396.50,384.00,394.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8996 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());