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/29/2024',y:[430.00,434.50,427.00,432.00]},{ x:'04/30/2024',y:[429.50,433.00,424.50,427.00]},{ x:'05/02/2024',y:[423.00,427.00,420.00,425.00]},{ x:'05/03/2024',y:[429.50,431.50,426.50,429.00]},{ x:'05/06/2024',y:[435.00,444.00,432.00,441.50]},{ x:'05/07/2024',y:[443.00,453.00,441.00,453.00]},{ x:'05/08/2024',y:[419.50,435.00,419.50,433.50]},{ x:'05/09/2024',y:[434.00,436.00,425.50,426.50]},{ x:'05/10/2024',y:[432.50,435.00,414.00,416.50]},{ x:'05/13/2024',y:[414.00,420.00,410.00,410.00]},{ x:'05/14/2024',y:[410.00,413.00,406.50,407.50]},{ x:'05/15/2024',y:[411.00,413.50,408.00,413.00]},{ x:'05/16/2024',y:[413.00,415.00,410.50,411.50]},{ x:'05/17/2024',y:[411.50,415.00,409.50,412.00]},{ x:'05/20/2024',y:[415.00,415.50,407.00,409.00]},{ x:'05/21/2024',y:[409.00,411.00,404.00,404.00]},{ x:'05/22/2024',y:[407.50,410.50,405.00,406.50]},{ x:'05/23/2024',y:[409.00,412.00,403.00,404.00]},{ x:'05/24/2024',y:[399.50,406.00,399.00,402.50]},{ x:'06/11/2024',y:[419.00,419.00,407.50,418.00]},{ x:'06/12/2024',y:[414.00,425.50,414.00,425.50]},{ x:'06/13/2024',y:[427.50,429.00,423.00,426.50]},{ x:'06/14/2024',y:[428.00,432.50,426.50,427.00]},{ x:'06/17/2024',y:[432.50,432.50,425.00,425.50]},{ x:'06/18/2024',y:[426.50,432.00,422.00,423.50]},{ x:'06/19/2024',y:[430.50,430.50,422.00,422.00]},{ x:'06/20/2024',y:[424.00,429.00,422.50,427.50]},{ x:'06/21/2024',y:[427.00,427.00,419.00,420.00]},{ x:'06/24/2024',y:[420.00,429.00,419.50,420.50]},{ x:'06/25/2024',y:[424.00,424.00,408.00,411.50]},{ x:'06/26/2024',y:[414.50,417.00,411.50,412.50]},{ x:'06/27/2024',y:[412.50,415.50,408.00,408.50]},{ x:'06/28/2024',y:[412.00,415.50,408.50,411.00]},{ x:'07/01/2024',y:[400.00,402.00,395.00,396.50]},{ x:'07/02/2024',y:[396.50,396.50,390.50,395.00]},{ x:'07/03/2024',y:[395.00,400.00,393.00,394.00]},{ x:'07/04/2024',y:[395.00,402.00,394.50,402.00]},{ x:'07/05/2024',y:[405.00,407.50,399.00,403.50]},{ x:'07/12/2024',y:[404.50,405.50,401.00,401.50]},{ x:'07/15/2024',y:[404.50,404.50,397.00,398.00]},{ x:'07/16/2024',y:[399.50,411.00,398.50,405.00]},{ x:'07/17/2024',y:[406.00,407.00,398.00,399.00]},{ x:'07/18/2024',y:[394.50,394.50,385.50,391.50]},{ x:'07/19/2024',y:[391.50,391.50,380.00,380.00]},{ x:'07/22/2024',y:[379.00,379.00,361.50,363.00]},{ x:'07/23/2024',y:[367.50,375.00,367.50,373.50]},{ x:'07/26/2024',y:[365.00,382.00,362.00,378.50]},{ x:'07/29/2024',y:[380.00,382.50,373.50,373.50]},{ x:'07/30/2024',y:[367.50,374.50,367.50,372.00]},{ x:'07/31/2024',y:[371.00,378.00,371.00,373.50]},{ x:'08/01/2024',y:[378.00,381.50,376.00,380.50]},{ x:'08/02/2024',y:[373.00,377.00,366.50,367.00]},{ x:'08/05/2024',y:[362.00,362.00,330.50,330.50]},{ x:'08/06/2024',y:[340.00,340.00,314.00,331.50]},{ x:'08/07/2024',y:[345.00,363.00,342.50,358.00]},{ x:'08/08/2024',y:[352.00,353.50,346.50,348.00]},{ x:'08/09/2024',y:[352.00,357.50,341.50,341.50]},{ x:'08/12/2024',y:[345.00,349.50,342.50,344.00]},{ x:'08/13/2024',y:[345.50,354.50,345.50,348.00]},{ x:'08/14/2024',y:[352.00,354.00,348.50,349.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3592 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());