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/18/2024',y:[610.00,631.00,604.00,623.00]},{ x:'03/19/2024',y:[609.00,626.00,563.00,569.00]},{ x:'03/20/2024',y:[570.00,588.00,561.00,567.00]},{ x:'03/21/2024',y:[584.00,596.00,574.00,585.00]},{ x:'03/22/2024',y:[594.00,597.00,578.00,589.00]},{ x:'03/25/2024',y:[589.00,596.00,580.00,583.00]},{ x:'03/26/2024',y:[584.00,586.00,533.00,541.00]},{ x:'03/27/2024',y:[541.00,548.00,531.00,534.00]},{ x:'03/28/2024',y:[536.00,545.00,511.00,542.00]},{ x:'03/29/2024',y:[545.00,564.00,536.00,546.00]},{ x:'04/01/2024',y:[554.00,570.00,549.00,554.00]},{ x:'04/02/2024',y:[561.00,563.00,533.00,533.00]},{ x:'04/03/2024',y:[524.00,565.00,523.00,546.00]},{ x:'04/08/2024',y:[548.00,598.00,547.00,570.00]},{ x:'04/09/2024',y:[581.00,593.00,561.00,577.00]},{ x:'04/10/2024',y:[578.00,586.00,555.00,555.00]},{ x:'04/11/2024',y:[558.00,594.00,554.00,584.00]},{ x:'04/12/2024',y:[592.00,636.00,592.00,628.00]},{ x:'04/15/2024',y:[622.00,639.00,611.00,616.00]},{ x:'04/16/2024',y:[606.00,620.00,586.00,606.00]},{ x:'04/17/2024',y:[620.00,643.00,612.00,638.00]},{ x:'04/18/2024',y:[638.00,692.00,630.00,680.00]},{ x:'04/19/2024',y:[666.00,679.00,612.00,630.00]},{ x:'04/22/2024',y:[600.00,611.00,567.00,567.00]},{ x:'04/23/2024',y:[595.00,595.00,567.00,577.00]},{ x:'04/24/2024',y:[610.00,634.00,608.00,634.00]},{ x:'04/25/2024',y:[629.00,656.00,616.00,620.00]},{ x:'04/26/2024',y:[654.00,679.00,629.00,642.00]},{ x:'04/29/2024',y:[663.00,666.00,622.00,626.00]},{ x:'04/30/2024',y:[645.00,662.00,641.00,654.00]},{ x:'05/02/2024',y:[636.00,664.00,624.00,656.00]},{ x:'05/03/2024',y:[670.00,672.00,645.00,662.00]},{ x:'05/06/2024',y:[675.00,698.00,660.00,662.00]},{ x:'05/07/2024',y:[674.00,682.00,655.00,674.00]},{ x:'05/08/2024',y:[674.00,678.00,661.00,663.00]},{ x:'05/09/2024',y:[669.00,676.00,638.00,654.00]},{ x:'05/10/2024',y:[657.00,658.00,637.00,638.00]},{ x:'05/13/2024',y:[650.00,666.00,626.00,626.00]},{ x:'05/14/2024',y:[628.00,646.00,621.00,645.00]},{ x:'05/15/2024',y:[659.00,672.00,643.00,644.00]},{ x:'05/16/2024',y:[656.00,677.00,650.00,651.00]},{ x:'05/17/2024',y:[656.00,667.00,651.00,660.00]},{ x:'05/20/2024',y:[662.00,667.00,637.00,638.00]},{ x:'05/21/2024',y:[641.00,650.00,635.00,650.00]},{ x:'05/22/2024',y:[650.00,662.00,648.00,660.00]},{ x:'05/23/2024',y:[671.00,725.00,665.00,708.00]},{ x:'05/24/2024',y:[703.00,713.00,690.00,706.00]},{ x:'06/11/2024',y:[646.00,675.00,643.00,665.00]},{ x:'06/12/2024',y:[662.00,688.00,638.00,688.00]},{ x:'06/13/2024',y:[716.00,721.00,698.00,712.00]},{ x:'06/14/2024',y:[717.00,744.00,707.00,739.00]},{ x:'06/17/2024',y:[750.00,756.00,719.00,723.00]},{ x:'06/18/2024',y:[734.00,737.00,703.00,713.00]},{ x:'06/19/2024',y:[719.00,720.00,701.00,704.00]},{ x:'06/20/2024',y:[707.00,745.00,707.00,740.00]},{ x:'06/21/2024',y:[726.00,742.00,714.00,731.00]},{ x:'06/24/2024',y:[725.00,731.00,711.00,714.00]},{ x:'06/25/2024',y:[707.00,710.00,686.00,701.00]},{ x:'06/26/2024',y:[710.00,749.00,710.00,740.00]},{ x:'06/27/2024',y:[730.00,755.00,730.00,736.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3017 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());