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:'11/09/2023',y:[383.50,391.50,383.00,390.00]},{ x:'11/10/2023',y:[390.00,391.00,383.50,385.50]},{ x:'11/13/2023',y:[387.00,393.00,386.50,392.00]},{ x:'11/14/2023',y:[386.50,386.50,380.00,383.50]},{ x:'11/15/2023',y:[386.50,387.00,382.00,382.50]},{ x:'11/16/2023',y:[384.00,386.50,383.00,383.50]},{ x:'11/17/2023',y:[383.50,388.00,383.50,387.50]},{ x:'11/20/2023',y:[389.50,397.00,388.00,396.50]},{ x:'11/21/2023',y:[399.00,400.00,393.00,396.50]},{ x:'11/22/2023',y:[393.00,394.50,384.00,394.00]},{ x:'11/23/2023',y:[394.00,406.00,394.00,400.00]},{ x:'11/24/2023',y:[400.00,404.00,398.00,401.50]},{ x:'11/27/2023',y:[406.00,412.00,401.50,401.50]},{ x:'11/28/2023',y:[406.50,408.50,397.00,403.00]},{ x:'11/29/2023',y:[405.00,409.50,402.50,406.50]},{ x:'11/30/2023',y:[407.00,407.00,400.00,400.00]},{ x:'12/01/2023',y:[401.00,402.00,393.00,394.50]},{ x:'12/04/2023',y:[396.50,397.50,391.00,391.00]},{ x:'12/05/2023',y:[391.00,397.00,387.50,397.00]},{ x:'12/06/2023',y:[397.00,400.00,392.00,393.00]},{ x:'12/07/2023',y:[396.00,398.50,393.50,393.50]},{ x:'12/08/2023',y:[398.00,399.00,394.50,395.00]},{ x:'12/11/2023',y:[398.00,399.50,395.00,395.00]},{ x:'12/12/2023',y:[398.50,407.50,398.50,403.00]},{ x:'12/18/2023',y:[427.50,430.00,419.00,421.50]},{ x:'12/19/2023',y:[423.50,425.00,410.50,412.50]},{ x:'01/10/2024',y:[386.50,395.00,385.50,393.00]},{ x:'01/11/2024',y:[395.50,395.50,389.50,390.50]},{ x:'01/12/2024',y:[393.50,403.00,392.00,397.00]},{ x:'01/15/2024',y:[401.00,401.50,394.00,394.00]},{ x:'01/16/2024',y:[393.00,403.00,388.50,401.00]},{ x:'01/17/2024',y:[401.00,403.50,396.00,398.50]},{ x:'01/18/2024',y:[400.00,404.00,398.50,402.50]},{ x:'01/19/2024',y:[405.00,408.00,400.50,403.50]},{ x:'01/22/2024',y:[406.50,414.00,406.00,414.00]},{ x:'01/23/2024',y:[415.00,428.00,415.00,423.00]},{ x:'01/24/2024',y:[423.00,423.00,406.00,406.50]},{ x:'01/25/2024',y:[408.50,408.50,402.00,402.00]},{ x:'01/26/2024',y:[402.50,404.50,400.00,402.50]},{ x:'01/29/2024',y:[401.50,404.50,400.00,401.00]},{ x:'01/30/2024',y:[403.00,404.00,398.00,398.50]},{ x:'01/31/2024',y:[397.50,403.00,397.00,400.00]},{ x:'02/01/2024',y:[400.00,401.50,393.50,395.00]},{ x:'02/02/2024',y:[396.00,398.50,392.00,393.50]},{ x:'02/05/2024',y:[395.00,395.50,390.00,392.50]},{ x:'02/15/2024',y:[396.00,407.00,394.50,407.00]},{ x:'02/16/2024',y:[409.00,412.00,405.00,409.00]},{ x:'02/19/2024',y:[410.50,423.00,409.00,420.00]},{ x:'02/20/2024',y:[422.00,424.00,409.00,411.00]},{ x:'02/21/2024',y:[417.50,417.50,410.00,411.50]},{ x:'02/22/2024',y:[413.00,416.50,410.50,415.00]},{ x:'02/23/2024',y:[416.00,416.50,407.50,409.50]},{ x:'02/26/2024',y:[411.00,432.00,411.00,429.00]},{ x:'02/27/2024',y:[428.00,432.00,418.50,427.00]},{ x:'02/29/2024',y:[426.50,426.50,419.00,423.50]},{ x:'03/01/2024',y:[425.00,431.50,423.00,426.00]},{ x:'03/04/2024',y:[428.50,431.50,420.00,420.50]},{ x:'03/05/2024',y:[425.00,425.00,410.00,412.00]},{ x:'03/06/2024',y:[411.00,413.00,408.00,409.50]},{ x:'03/07/2024',y:[411.00,412.00,401.50,401.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3406 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());