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:[355.00,380.50,354.50,380.50]},{ x:'01/23/2024',y:[387.50,389.50,376.00,386.50]},{ x:'01/24/2024',y:[387.00,390.50,379.00,387.50]},{ x:'01/25/2024',y:[391.00,398.00,383.00,389.50]},{ x:'01/26/2024',y:[387.50,387.50,378.00,386.00]},{ x:'01/29/2024',y:[383.50,393.00,382.00,390.50]},{ x:'01/30/2024',y:[400.00,429.50,398.00,429.50]},{ x:'01/31/2024',y:[424.00,428.00,414.00,425.50]},{ x:'02/01/2024',y:[426.50,467.00,425.50,457.50]},{ x:'02/02/2024',y:[467.00,484.00,466.50,478.00]},{ x:'02/05/2024',y:[478.00,498.50,478.00,485.50]},{ x:'02/15/2024',y:[518.00,534.00,514.00,534.00]},{ x:'02/16/2024',y:[544.00,545.00,499.00,510.00]},{ x:'02/19/2024',y:[509.00,520.00,485.00,486.00]},{ x:'02/20/2024',y:[485.00,491.50,468.00,483.00]},{ x:'02/21/2024',y:[479.50,498.00,476.00,495.00]},{ x:'02/22/2024',y:[533.00,535.00,507.00,520.00]},{ x:'02/23/2024',y:[520.00,523.00,497.00,498.50]},{ x:'02/26/2024',y:[498.50,504.00,487.00,500.00]},{ x:'02/27/2024',y:[505.00,519.00,487.00,508.00]},{ x:'02/29/2024',y:[504.00,541.00,500.00,532.00]},{ x:'03/01/2024',y:[539.00,558.00,524.00,539.00]},{ x:'03/04/2024',y:[552.00,564.00,550.00,554.00]},{ x:'03/05/2024',y:[558.00,585.00,543.00,585.00]},{ x:'03/06/2024',y:[583.00,634.00,581.00,630.00]},{ x:'03/07/2024',y:[637.00,659.00,587.00,599.00]},{ x:'03/08/2024',y:[604.00,621.00,572.00,574.00]},{ x:'03/11/2024',y:[567.00,616.00,566.00,585.00]},{ x:'03/12/2024',y:[597.00,643.00,592.00,643.00]},{ x:'03/13/2024',y:[651.00,677.00,607.00,617.00]},{ x:'03/14/2024',y:[582.00,586.00,556.00,556.00]},{ x:'03/15/2024',y:[540.00,605.00,540.00,599.00]},{ 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]} ] }], 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());