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/26/2024',y:[333.00,339.50,330.50,335.00]},{ x:'04/29/2024',y:[342.00,349.50,332.00,342.50]},{ x:'04/30/2024',y:[344.00,348.50,338.00,338.00]},{ x:'05/02/2024',y:[334.00,348.50,329.00,347.00]},{ x:'05/03/2024',y:[351.50,356.00,342.00,342.50]},{ x:'05/06/2024',y:[347.50,358.00,341.00,348.50]},{ x:'05/07/2024',y:[358.50,368.00,352.50,364.00]},{ x:'05/08/2024',y:[361.50,368.00,358.00,368.00]},{ x:'05/09/2024',y:[375.50,375.50,355.50,364.00]},{ x:'05/10/2024',y:[358.50,361.50,345.00,345.00]},{ x:'05/13/2024',y:[321.00,333.00,317.50,319.00]},{ x:'05/14/2024',y:[320.00,324.50,319.00,323.50]},{ x:'05/15/2024',y:[329.00,330.00,320.00,320.00]},{ x:'05/16/2024',y:[327.00,343.00,325.50,332.50]},{ x:'05/17/2024',y:[333.00,341.00,328.50,338.00]},{ x:'05/20/2024',y:[335.50,338.50,327.00,328.50]},{ x:'05/21/2024',y:[329.00,335.00,329.00,334.50]},{ x:'05/22/2024',y:[336.00,338.00,332.00,334.00]},{ x:'05/23/2024',y:[337.50,342.00,330.00,334.00]},{ x:'05/24/2024',y:[330.00,354.00,330.00,351.00]},{ x:'06/11/2024',y:[346.00,358.00,342.50,349.50]},{ x:'06/12/2024',y:[352.50,356.50,343.50,345.00]},{ x:'06/13/2024',y:[350.00,353.00,346.00,349.50]},{ x:'06/14/2024',y:[353.50,355.00,341.50,344.50]},{ x:'06/17/2024',y:[344.50,360.50,340.00,340.50]},{ x:'06/18/2024',y:[345.50,351.00,343.00,344.00]},{ x:'06/19/2024',y:[348.50,352.50,344.00,349.00]},{ x:'06/20/2024',y:[353.50,372.00,349.00,367.50]},{ x:'06/21/2024',y:[362.00,363.00,353.00,358.50]},{ x:'06/24/2024',y:[354.50,362.00,342.00,342.00]},{ x:'06/25/2024',y:[344.50,344.50,329.50,335.00]},{ x:'06/26/2024',y:[339.00,357.50,338.00,354.00]},{ x:'06/27/2024',y:[345.00,357.50,345.00,346.00]},{ x:'06/28/2024',y:[350.00,359.50,350.00,353.50]},{ x:'07/01/2024',y:[353.50,388.50,347.00,388.50]},{ x:'07/02/2024',y:[393.50,394.00,381.00,389.00]},{ x:'07/03/2024',y:[393.50,396.00,372.00,373.50]},{ x:'07/04/2024',y:[380.50,410.50,379.00,410.50]},{ x:'07/05/2024',y:[411.50,451.50,408.50,451.50]},{ x:'07/12/2024',y:[426.50,431.00,409.00,411.50]},{ x:'07/15/2024',y:[419.50,426.00,413.00,423.50]},{ x:'07/16/2024',y:[420.00,432.50,413.00,413.50]},{ x:'07/17/2024',y:[415.00,419.50,405.00,409.00]},{ x:'07/18/2024',y:[394.00,394.50,374.00,382.00]},{ x:'07/19/2024',y:[390.00,420.00,385.00,420.00]},{ x:'07/22/2024',y:[418.00,429.00,380.50,391.00]},{ x:'07/23/2024',y:[402.50,413.50,394.50,409.00]},{ x:'07/26/2024',y:[388.50,424.50,383.50,401.50]},{ x:'07/29/2024',y:[410.50,414.50,380.50,382.00]},{ x:'07/30/2024',y:[380.00,409.50,378.50,405.50]},{ x:'07/31/2024',y:[398.50,413.00,398.00,401.00]},{ x:'08/01/2024',y:[414.00,424.00,405.00,418.50]},{ x:'08/02/2024',y:[402.00,424.00,391.50,393.50]},{ x:'08/05/2024',y:[374.50,380.00,354.50,354.50]},{ x:'08/06/2024',y:[361.00,367.50,322.50,354.00]},{ x:'08/07/2024',y:[357.00,383.00,350.50,371.00]},{ x:'08/08/2024',y:[365.00,371.00,351.00,361.50]},{ x:'08/09/2024',y:[374.00,396.50,374.00,396.00]},{ x:'08/12/2024',y:[398.00,427.50,398.00,414.50]},{ x:'08/13/2024',y:[423.50,428.00,410.00,423.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3583 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());