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/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]},{ x:'03/28/2024',y:[510.00,516.00,500.00,509.00]},{ x:'03/29/2024',y:[514.00,514.00,489.00,496.00]},{ x:'04/01/2024',y:[496.00,496.00,482.50,489.50]},{ x:'04/02/2024',y:[493.00,496.00,482.00,484.50]},{ x:'04/03/2024',y:[483.00,494.50,472.00,474.00]},{ x:'04/08/2024',y:[473.00,476.00,464.50,468.50]},{ x:'04/09/2024',y:[488.50,494.00,471.00,477.00]},{ x:'04/10/2024',y:[482.00,486.50,476.00,479.00]},{ x:'04/11/2024',y:[477.00,477.00,468.50,472.50]},{ x:'04/12/2024',y:[475.50,491.00,468.50,472.00]},{ x:'04/15/2024',y:[472.00,472.00,458.00,458.50]},{ x:'04/16/2024',y:[450.00,451.00,434.50,442.00]},{ x:'04/17/2024',y:[444.00,452.00,444.00,447.50]},{ x:'04/18/2024',y:[442.00,448.50,440.50,442.00]},{ x:'04/19/2024',y:[440.50,441.00,413.50,424.00]},{ x:'04/22/2024',y:[426.00,426.00,415.00,415.00]},{ x:'04/23/2024',y:[421.50,423.50,417.00,420.00]},{ x:'04/24/2024',y:[426.00,433.50,426.00,433.50]},{ x:'04/25/2024',y:[432.00,437.50,426.50,427.50]},{ x:'04/26/2024',y:[432.00,436.00,424.00,424.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());