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/05/2024',y:[428.50,432.50,420.00,420.00]},{ x:'03/06/2024',y:[421.00,422.50,411.50,411.50]},{ x:'03/07/2024',y:[408.00,416.00,405.50,406.00]},{ x:'03/08/2024',y:[406.50,409.50,401.00,403.00]},{ x:'03/11/2024',y:[403.00,408.00,402.00,402.50]},{ x:'03/12/2024',y:[402.50,409.00,401.00,408.00]},{ x:'03/13/2024',y:[405.00,412.50,400.00,400.50]},{ x:'03/14/2024',y:[401.00,407.00,401.00,405.50]},{ x:'03/15/2024',y:[401.50,404.50,400.00,400.50]},{ x:'03/18/2024',y:[403.50,413.50,403.00,405.00]},{ x:'03/19/2024',y:[405.00,406.00,393.50,394.50]},{ x:'03/20/2024',y:[395.00,396.50,388.00,390.00]},{ x:'03/21/2024',y:[392.00,397.50,392.00,396.50]},{ x:'03/22/2024',y:[398.00,398.00,387.00,389.50]},{ x:'03/25/2024',y:[389.50,390.00,382.50,382.50]},{ x:'03/26/2024',y:[384.00,388.50,380.50,382.50]},{ x:'03/27/2024',y:[384.50,386.50,381.00,384.50]},{ x:'03/28/2024',y:[386.00,394.50,383.00,393.00]},{ x:'03/29/2024',y:[395.00,395.50,385.00,387.00]},{ x:'04/11/2024',y:[402.00,406.00,398.50,400.50]},{ x:'04/12/2024',y:[399.50,399.50,386.00,386.50]},{ x:'04/15/2024',y:[387.00,387.00,383.00,383.00]},{ x:'04/16/2024',y:[382.50,385.50,376.00,378.00]},{ x:'04/17/2024',y:[382.00,383.50,378.50,383.00]},{ x:'04/18/2024',y:[383.00,395.00,381.00,395.00]},{ x:'04/19/2024',y:[393.00,403.00,381.00,384.50]},{ x:'04/22/2024',y:[388.00,399.50,388.00,399.00]},{ x:'04/23/2024',y:[402.50,405.50,396.00,403.00]},{ x:'04/24/2024',y:[404.00,411.50,401.00,401.50]},{ x:'04/25/2024',y:[405.00,427.00,402.00,422.00]},{ x:'04/26/2024',y:[423.50,427.50,416.50,421.00]},{ x:'04/29/2024',y:[427.00,448.00,425.00,442.00]},{ x:'04/30/2024',y:[437.50,445.50,434.00,442.00]},{ x:'05/02/2024',y:[443.00,448.50,438.50,442.00]},{ x:'05/03/2024',y:[450.00,450.00,419.50,419.50]},{ x:'05/06/2024',y:[424.00,442.50,416.50,435.00]},{ x:'05/07/2024',y:[438.50,442.50,424.00,428.50]},{ x:'05/08/2024',y:[430.50,434.50,421.00,421.00]},{ x:'05/09/2024',y:[423.50,425.00,418.00,419.00]},{ x:'05/10/2024',y:[424.00,424.00,415.50,417.50]},{ x:'05/13/2024',y:[415.00,422.00,413.00,419.00]},{ x:'05/14/2024',y:[419.00,423.00,412.50,414.50]},{ x:'05/15/2024',y:[415.00,419.50,414.00,415.50]},{ x:'05/16/2024',y:[419.50,429.00,419.50,424.00]},{ x:'05/17/2024',y:[424.00,441.00,422.00,432.00]},{ x:'05/20/2024',y:[436.00,440.50,426.50,435.50]},{ x:'05/21/2024',y:[438.00,438.00,427.50,427.50]},{ x:'05/22/2024',y:[428.50,437.50,428.50,436.50]},{ x:'05/23/2024',y:[433.50,435.00,430.00,430.00]},{ x:'05/24/2024',y:[427.50,428.50,424.50,427.50]},{ x:'06/11/2024',y:[443.00,447.50,433.00,433.00]},{ x:'06/12/2024',y:[424.50,430.00,422.00,424.00]},{ x:'06/13/2024',y:[426.50,430.50,424.50,424.50]},{ x:'06/14/2024',y:[428.00,428.00,424.50,425.00]},{ x:'06/17/2024',y:[428.50,447.00,428.00,442.00]},{ x:'06/18/2024',y:[445.00,448.00,440.00,442.50]},{ x:'06/19/2024',y:[444.00,445.00,432.00,432.00]},{ x:'06/20/2024',y:[437.00,438.50,433.50,435.00]},{ x:'06/21/2024',y:[436.00,438.00,431.00,433.00]},{ x:'06/24/2024',y:[434.00,435.00,427.00,427.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8454 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());