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/18/2024',y:[429.00,433.50,401.00,408.50]},{ x:'03/19/2024',y:[406.50,415.00,405.00,407.50]},{ x:'03/20/2024',y:[409.00,419.50,409.00,414.00]},{ x:'03/21/2024',y:[414.50,422.00,411.50,420.00]},{ x:'03/22/2024',y:[424.00,436.50,420.50,421.50]},{ x:'03/25/2024',y:[421.50,426.50,419.50,423.50]},{ x:'03/26/2024',y:[421.00,426.00,416.50,417.00]},{ x:'03/27/2024',y:[418.00,427.50,416.50,424.50]},{ x:'03/28/2024',y:[423.00,430.00,418.50,423.50]},{ x:'03/29/2024',y:[423.50,429.50,423.00,429.50]},{ x:'04/01/2024',y:[431.50,432.00,423.00,423.00]},{ x:'04/02/2024',y:[423.50,427.00,421.50,423.00]},{ x:'04/03/2024',y:[420.50,425.50,419.50,422.50]},{ x:'04/08/2024',y:[420.50,427.00,420.00,426.00]},{ x:'04/09/2024',y:[423.50,426.50,422.50,425.00]},{ x:'04/10/2024',y:[433.00,446.50,433.00,435.00]},{ x:'04/11/2024',y:[438.00,455.00,429.50,453.50]},{ x:'04/12/2024',y:[448.00,448.50,442.50,443.50]},{ x:'04/15/2024',y:[440.00,446.00,438.50,440.50]},{ x:'04/16/2024',y:[436.00,437.00,425.00,425.50]},{ x:'04/17/2024',y:[429.50,431.50,425.50,428.50]},{ x:'04/18/2024',y:[425.50,430.00,423.50,427.00]},{ x:'04/19/2024',y:[422.50,425.00,407.00,413.50]},{ x:'04/22/2024',y:[415.50,419.50,411.50,413.50]},{ x:'04/23/2024',y:[415.00,418.50,406.50,409.50]},{ x:'04/24/2024',y:[415.50,422.00,414.00,420.50]},{ x:'04/25/2024',y:[413.50,415.50,410.00,412.00]},{ x:'04/26/2024',y:[412.50,422.50,412.50,419.00]},{ x:'04/29/2024',y:[420.50,426.50,420.50,426.00]},{ x:'04/30/2024',y:[425.00,434.50,425.00,430.00]},{ x:'05/02/2024',y:[427.00,432.00,426.50,427.50]},{ x:'05/03/2024',y:[431.50,435.00,428.50,429.00]},{ x:'05/06/2024',y:[433.50,451.50,433.00,448.50]},{ x:'05/07/2024',y:[452.50,466.00,451.50,460.00]},{ x:'05/08/2024',y:[456.00,461.50,452.50,458.50]},{ x:'05/09/2024',y:[460.50,483.00,460.00,475.00]},{ x:'05/10/2024',y:[473.00,474.50,464.00,470.50]},{ x:'05/13/2024',y:[473.00,476.00,459.00,466.00]},{ x:'05/14/2024',y:[510.00,512.00,495.50,512.00]},{ x:'05/15/2024',y:[513.00,517.00,495.50,498.00]},{ x:'05/16/2024',y:[505.00,520.00,500.00,516.00]},{ x:'05/17/2024',y:[510.00,516.00,502.00,516.00]},{ x:'05/20/2024',y:[518.00,521.00,501.00,506.00]},{ x:'05/21/2024',y:[503.00,505.00,483.00,489.00]},{ x:'05/22/2024',y:[499.50,535.00,493.00,522.00]},{ x:'05/23/2024',y:[531.00,531.00,512.00,520.00]},{ x:'05/24/2024',y:[508.00,524.00,503.00,519.00]},{ x:'06/11/2024',y:[484.00,486.00,478.00,481.50]},{ x:'06/12/2024',y:[480.00,484.50,477.00,480.50]},{ x:'06/13/2024',y:[480.50,491.50,478.00,487.00]},{ x:'06/14/2024',y:[495.00,496.00,490.00,493.50]},{ x:'06/17/2024',y:[493.50,495.00,489.00,489.00]},{ x:'06/18/2024',y:[492.00,497.50,490.50,496.00]},{ x:'06/19/2024',y:[498.00,508.00,495.50,502.00]},{ x:'06/20/2024',y:[505.00,516.00,504.00,512.00]},{ x:'06/21/2024',y:[507.00,518.00,505.00,512.00]},{ x:'06/24/2024',y:[514.00,518.00,508.00,513.00]},{ x:'06/25/2024',y:[510.00,511.00,500.00,506.00]},{ x:'06/26/2024',y:[503.00,512.00,501.00,506.00]},{ x:'06/27/2024',y:[501.00,506.00,496.00,503.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2357 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());