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:'03/19/2024',y:[413.50,424.50,407.00,418.00]},{ x:'03/20/2024',y:[423.50,423.50,406.00,406.00]},{ x:'03/21/2024',y:[412.50,435.00,407.50,420.50]},{ x:'03/22/2024',y:[440.00,440.00,426.50,427.50]},{ x:'03/25/2024',y:[427.50,430.50,420.50,420.50]},{ x:'03/26/2024',y:[423.00,429.00,407.00,409.00]},{ x:'03/27/2024',y:[415.00,418.00,409.00,415.00]},{ x:'03/28/2024',y:[419.00,424.50,402.50,403.00]},{ x:'03/29/2024',y:[403.00,407.50,400.00,403.50]},{ x:'04/01/2024',y:[407.50,408.50,397.50,398.50]},{ x:'04/02/2024',y:[400.00,405.00,397.50,400.50]},{ x:'04/03/2024',y:[402.00,419.50,400.50,410.50]},{ x:'04/08/2024',y:[429.00,449.50,426.50,445.00]},{ x:'04/09/2024',y:[445.00,450.00,433.50,434.50]},{ x:'04/10/2024',y:[438.00,438.00,400.00,405.50]},{ x:'04/11/2024',y:[402.50,407.50,399.50,400.50]},{ x:'04/12/2024',y:[403.50,408.00,401.00,402.00]},{ x:'04/15/2024',y:[400.00,403.50,383.00,383.00]},{ x:'04/16/2024',y:[375.00,380.00,368.50,374.50]},{ x:'04/17/2024',y:[374.50,378.00,371.00,372.50]},{ x:'04/18/2024',y:[372.50,391.00,370.00,385.00]},{ x:'04/19/2024',y:[378.50,388.50,360.00,375.50]},{ x:'04/22/2024',y:[371.00,372.50,350.50,350.50]},{ x:'04/23/2024',y:[363.00,381.50,356.00,376.00]},{ x:'04/24/2024',y:[388.00,397.50,386.00,391.50]},{ x:'04/25/2024',y:[385.00,402.00,382.50,382.50]},{ x:'04/26/2024',y:[393.00,402.00,390.00,397.00]},{ x:'04/29/2024',y:[407.50,412.00,403.00,406.50]},{ x:'04/30/2024',y:[412.00,417.50,401.50,412.00]},{ x:'05/02/2024',y:[426.00,434.00,417.50,421.50]},{ x:'05/03/2024',y:[432.00,435.00,416.50,416.50]},{ x:'05/06/2024',y:[428.50,434.50,422.50,426.00]},{ x:'05/07/2024',y:[429.00,429.00,409.00,420.00]},{ x:'05/08/2024',y:[420.00,428.00,417.50,425.50]},{ x:'05/09/2024',y:[428.00,429.00,419.00,422.50]},{ x:'05/10/2024',y:[427.50,427.50,413.00,416.00]},{ x:'05/13/2024',y:[415.00,415.50,403.50,412.00]},{ x:'05/14/2024',y:[412.00,416.50,404.50,408.50]},{ x:'05/15/2024',y:[414.50,426.00,411.00,420.50]},{ x:'05/16/2024',y:[428.00,439.50,427.50,433.50]},{ x:'05/17/2024',y:[437.00,451.50,432.50,448.00]},{ x:'05/20/2024',y:[450.50,450.50,432.00,432.00]},{ x:'05/21/2024',y:[432.00,434.00,424.50,424.50]},{ x:'05/22/2024',y:[429.50,434.50,425.00,431.00]},{ x:'05/23/2024',y:[435.50,437.50,421.00,430.50]},{ x:'05/24/2024',y:[425.50,433.50,424.00,430.50]},{ x:'06/11/2024',y:[433.00,434.00,417.00,422.50]},{ x:'06/12/2024',y:[431.50,462.00,430.50,452.50]},{ x:'06/13/2024',y:[463.50,466.50,448.00,451.50]},{ x:'06/14/2024',y:[460.00,463.00,447.50,462.00]},{ x:'06/17/2024',y:[473.00,474.00,450.00,450.00]},{ x:'06/18/2024',y:[456.00,458.00,448.00,451.00]},{ x:'06/19/2024',y:[457.00,457.50,444.00,444.50]},{ x:'06/20/2024',y:[445.00,465.00,445.00,462.50]},{ x:'06/21/2024',y:[457.00,458.00,448.00,453.00]},{ x:'06/24/2024',y:[453.00,467.00,448.00,457.50]},{ x:'06/25/2024',y:[458.50,464.00,445.00,464.00]},{ x:'06/26/2024',y:[472.50,479.00,467.50,472.50]},{ x:'06/27/2024',y:[471.00,482.00,466.50,479.50]},{ x:'06/28/2024',y:[477.50,483.50,474.00,475.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2383 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());