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/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]},{ x:'03/08/2024',y:[403.00,406.50,395.50,400.00]},{ x:'03/11/2024',y:[402.50,402.50,397.00,398.00]},{ x:'03/12/2024',y:[402.00,411.00,401.00,408.50]},{ x:'03/13/2024',y:[408.50,408.50,398.00,398.50]},{ x:'03/14/2024',y:[410.00,423.00,410.00,418.50]},{ x:'03/15/2024',y:[419.00,428.00,417.00,417.50]},{ x:'03/18/2024',y:[420.00,428.00,419.50,428.00]},{ x:'03/19/2024',y:[426.00,426.00,415.50,423.00]},{ x:'03/20/2024',y:[427.00,465.00,425.50,462.50]},{ x:'03/21/2024',y:[467.50,479.50,464.00,476.00]},{ x:'03/22/2024',y:[478.00,483.00,466.50,482.50]},{ x:'03/25/2024',y:[486.00,506.00,481.50,493.00]},{ x:'03/26/2024',y:[500.00,538.00,495.00,499.00]},{ x:'03/27/2024',y:[508.00,518.00,492.00,505.00]} ] }], 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());