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/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]},{ x:'04/29/2024',y:[430.00,441.00,428.50,435.00]},{ x:'04/30/2024',y:[434.50,444.00,430.00,441.00]},{ x:'05/02/2024',y:[441.50,444.00,436.00,437.50]},{ x:'05/03/2024',y:[447.00,463.00,445.00,460.00]},{ x:'05/06/2024',y:[466.50,467.00,459.00,459.00]},{ x:'05/07/2024',y:[464.50,464.50,452.50,453.00]},{ x:'05/08/2024',y:[452.50,459.00,448.00,455.50]},{ x:'05/09/2024',y:[461.50,467.00,451.00,451.50]},{ x:'05/10/2024',y:[456.00,456.00,446.50,448.00]},{ x:'05/13/2024',y:[450.50,454.50,448.50,453.00]},{ x:'05/14/2024',y:[453.00,489.00,453.00,488.50]},{ x:'05/15/2024',y:[518.00,535.00,510.00,513.00]},{ x:'05/16/2024',y:[519.00,527.00,510.00,524.00]},{ x:'05/17/2024',y:[524.00,530.00,518.00,530.00]},{ x:'05/20/2024',y:[542.00,548.00,530.00,540.00]},{ x:'05/21/2024',y:[540.00,542.00,526.00,535.00]},{ x:'05/22/2024',y:[536.00,537.00,517.00,518.00]},{ x:'05/23/2024',y:[518.00,537.00,513.00,533.00]},{ x:'05/24/2024',y:[526.00,529.00,522.00,526.00]},{ x:'06/11/2024',y:[550.00,558.00,540.00,545.00]},{ x:'06/12/2024',y:[578.00,598.00,577.00,591.00]},{ x:'06/13/2024',y:[595.00,600.00,583.00,599.00]},{ x:'06/14/2024',y:[606.00,632.00,597.00,630.00]},{ x:'06/17/2024',y:[630.00,651.00,624.00,628.00]},{ x:'06/18/2024',y:[647.00,647.00,618.00,630.00]},{ x:'06/19/2024',y:[638.00,650.00,626.00,626.00]},{ x:'06/20/2024',y:[630.00,639.00,622.00,637.00]},{ x:'06/21/2024',y:[628.00,645.00,627.00,645.00]},{ x:'06/24/2024',y:[644.00,662.00,639.00,650.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());