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:'04/24/2024',y:[392.00,413.00,387.00,411.00]},{ x:'04/25/2024',y:[401.50,416.50,401.50,406.50]},{ x:'04/26/2024',y:[436.00,447.00,430.00,447.00]},{ x:'04/29/2024',y:[480.00,485.00,453.00,457.00]},{ x:'04/30/2024',y:[460.50,475.50,447.00,468.00]},{ x:'05/02/2024',y:[457.00,457.00,434.00,440.50]},{ x:'05/03/2024',y:[445.50,449.00,431.00,433.00]},{ x:'05/06/2024',y:[434.00,442.00,421.00,423.50]},{ x:'05/07/2024',y:[427.00,441.00,421.00,435.00]},{ x:'05/08/2024',y:[438.00,438.00,427.50,433.50]},{ x:'05/09/2024',y:[438.50,438.50,390.50,391.00]},{ x:'05/10/2024',y:[393.00,404.50,387.00,400.00]},{ x:'05/13/2024',y:[400.50,401.00,388.00,392.00]},{ x:'05/14/2024',y:[392.50,397.50,389.50,396.50]},{ x:'05/15/2024',y:[404.00,412.00,390.00,392.00]},{ x:'05/16/2024',y:[397.00,408.50,396.50,398.00]},{ x:'05/17/2024',y:[400.00,407.00,397.50,403.50]},{ x:'05/20/2024',y:[406.00,409.00,392.50,396.00]},{ x:'05/21/2024',y:[399.00,404.00,394.00,399.00]},{ x:'05/22/2024',y:[403.50,407.00,399.50,401.00]},{ x:'05/23/2024',y:[402.50,402.50,362.00,366.00]},{ x:'05/24/2024',y:[362.00,392.50,356.00,379.50]},{ x:'06/11/2024',y:[378.00,401.50,376.00,397.50]},{ x:'06/12/2024',y:[407.50,408.00,392.50,393.00]},{ x:'06/13/2024',y:[397.50,427.00,395.50,418.00]},{ x:'06/14/2024',y:[418.00,421.00,408.50,413.50]},{ x:'06/17/2024',y:[407.50,414.50,399.00,405.50]},{ x:'06/18/2024',y:[409.00,410.50,395.00,395.00]},{ x:'06/19/2024',y:[395.50,403.50,387.00,389.00]},{ x:'06/20/2024',y:[391.50,403.00,390.00,399.00]},{ x:'06/21/2024',y:[396.00,396.00,386.50,390.00]},{ x:'06/24/2024',y:[390.50,390.50,379.00,384.50]},{ x:'06/25/2024',y:[388.50,391.50,376.00,387.50]},{ x:'06/26/2024',y:[391.00,413.50,390.00,403.00]},{ x:'06/27/2024',y:[401.00,406.50,391.00,391.00]},{ x:'06/28/2024',y:[393.50,406.50,392.00,394.00]},{ x:'07/01/2024',y:[396.00,404.50,395.50,399.00]},{ x:'07/02/2024',y:[402.50,424.50,394.00,417.50]},{ x:'07/03/2024',y:[423.00,425.00,399.00,400.00]},{ x:'07/04/2024',y:[398.50,412.50,388.00,412.50]},{ x:'07/05/2024',y:[410.00,417.00,399.50,403.50]},{ x:'07/12/2024',y:[401.00,404.50,393.00,399.00]},{ x:'07/15/2024',y:[396.00,404.50,388.00,390.00]},{ x:'07/16/2024',y:[392.00,396.00,385.00,385.00]},{ x:'07/17/2024',y:[386.50,390.00,380.00,380.50]},{ x:'07/18/2024',y:[372.00,379.00,366.00,377.50]},{ x:'07/19/2024',y:[377.00,377.50,366.00,366.50]},{ x:'07/22/2024',y:[367.00,374.00,339.00,341.50]},{ x:'07/23/2024',y:[345.00,356.00,344.00,347.00]},{ x:'07/26/2024',y:[335.00,346.00,324.00,340.00]},{ x:'07/29/2024',y:[342.00,345.00,323.00,326.00]},{ x:'07/30/2024',y:[319.00,329.50,307.50,327.00]},{ x:'07/31/2024',y:[326.50,335.00,316.00,321.00]},{ x:'08/01/2024',y:[328.00,331.00,323.00,330.50]},{ x:'08/02/2024',y:[321.00,324.00,308.00,310.00]},{ x:'08/05/2024',y:[283.00,286.00,279.00,279.00]},{ x:'08/06/2024',y:[282.00,291.00,251.50,278.00]},{ x:'08/07/2024',y:[274.00,305.50,274.00,305.00]},{ x:'08/08/2024',y:[299.00,305.00,296.00,297.50]},{ x:'08/09/2024',y:[310.00,312.00,304.00,306.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3563 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());