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:'01/15/2024',y:[471.00,488.00,471.00,472.00]},{ x:'01/16/2024',y:[472.00,472.00,460.00,462.00]},{ x:'01/17/2024',y:[458.50,461.00,452.50,460.00]},{ x:'01/18/2024',y:[445.50,454.50,439.50,454.50]},{ x:'01/19/2024',y:[448.00,459.00,448.00,448.00]},{ x:'01/22/2024',y:[448.50,453.00,445.00,446.00]},{ x:'01/23/2024',y:[446.00,450.00,446.00,448.50]},{ x:'01/24/2024',y:[450.00,463.00,449.00,450.50]},{ x:'01/25/2024',y:[453.50,455.50,448.00,450.00]},{ x:'01/26/2024',y:[450.00,452.50,447.50,450.50]},{ x:'01/29/2024',y:[450.00,452.00,448.00,449.50]},{ x:'01/30/2024',y:[450.00,450.00,438.50,438.50]},{ x:'01/31/2024',y:[439.00,446.50,436.00,436.00]},{ x:'02/01/2024',y:[439.00,443.50,432.00,443.50]},{ x:'02/02/2024',y:[443.50,446.50,438.50,438.50]},{ x:'02/05/2024',y:[437.00,438.00,420.50,421.50]},{ x:'02/15/2024',y:[409.00,419.00,399.50,414.50]},{ x:'02/16/2024',y:[420.00,431.00,420.00,431.00]},{ x:'02/19/2024',y:[438.50,447.50,436.50,444.50]},{ x:'02/20/2024',y:[442.00,443.50,438.00,440.00]},{ x:'02/21/2024',y:[440.00,441.00,437.00,437.00]},{ x:'02/22/2024',y:[434.00,435.00,423.00,430.50]},{ x:'02/23/2024',y:[430.00,438.50,427.00,430.50]},{ x:'02/26/2024',y:[438.00,438.00,432.00,433.50]},{ x:'02/27/2024',y:[431.00,434.50,423.00,424.00]},{ x:'02/29/2024',y:[431.00,454.50,427.00,444.50]},{ x:'03/01/2024',y:[441.00,445.00,432.00,432.00]},{ x:'03/04/2024',y:[435.50,438.00,427.00,428.50]},{ 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]} ] }], 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());