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/30/2023',y:[536.00,547.00,529.00,534.00]},{ x:'01/31/2023',y:[528.00,535.00,517.00,520.00]},{ x:'02/01/2023',y:[521.00,529.00,517.00,525.00]},{ x:'02/02/2023',y:[526.00,535.00,524.00,531.00]},{ x:'02/03/2023',y:[534.00,534.00,516.00,519.00]},{ x:'02/06/2023',y:[519.00,524.00,510.00,519.00]},{ x:'02/07/2023',y:[523.00,532.00,520.00,531.00]},{ x:'02/08/2023',y:[535.00,543.00,532.00,532.00]},{ x:'02/09/2023',y:[532.00,541.00,529.00,541.00]},{ x:'02/10/2023',y:[540.00,575.00,527.00,532.00]},{ x:'02/13/2023',y:[540.00,557.00,528.00,530.00]},{ x:'02/14/2023',y:[540.00,564.00,532.00,564.00]},{ x:'02/15/2023',y:[546.00,551.00,536.00,540.00]},{ x:'02/16/2023',y:[545.00,591.00,545.00,585.00]},{ x:'02/17/2023',y:[580.00,580.00,561.00,569.00]},{ x:'02/20/2023',y:[568.00,569.00,554.00,559.00]},{ x:'02/21/2023',y:[565.00,575.00,553.00,559.00]},{ x:'02/22/2023',y:[551.00,580.00,547.00,580.00]},{ x:'02/23/2023',y:[574.00,614.00,574.00,603.00]},{ x:'02/24/2023',y:[609.00,615.00,586.00,593.00]},{ x:'03/01/2023',y:[563.00,614.00,563.00,614.00]},{ x:'03/02/2023',y:[614.00,620.00,601.00,602.00]},{ x:'03/03/2023',y:[610.00,615.00,598.00,599.00]},{ x:'03/06/2023',y:[608.00,608.00,592.00,596.00]},{ x:'03/07/2023',y:[604.00,612.00,599.00,608.00]},{ x:'03/08/2023',y:[606.00,619.00,605.00,608.00]},{ x:'03/09/2023',y:[613.00,613.00,603.00,613.00]},{ x:'03/10/2023',y:[608.00,609.00,588.00,589.00]},{ x:'03/13/2023',y:[580.00,591.00,577.00,590.00]},{ x:'03/14/2023',y:[593.00,593.00,582.00,582.00]},{ x:'03/15/2023',y:[586.00,590.00,580.00,584.00]},{ x:'03/16/2023',y:[577.00,579.00,561.00,567.00]},{ x:'03/17/2023',y:[574.00,591.00,572.00,585.00]},{ x:'03/20/2023',y:[592.00,592.00,581.00,586.00]},{ x:'03/21/2023',y:[588.00,590.00,581.00,581.00]},{ x:'03/22/2023',y:[583.00,594.00,583.00,591.00]},{ x:'03/23/2023',y:[583.00,583.00,570.00,576.00]},{ x:'03/24/2023',y:[573.00,575.00,558.00,560.00]},{ x:'03/27/2023',y:[559.00,572.00,557.00,570.00]},{ x:'03/28/2023',y:[573.00,574.00,556.00,557.00]},{ x:'03/29/2023',y:[563.00,570.00,559.00,564.00]},{ x:'03/30/2023',y:[570.00,573.00,564.00,573.00]},{ x:'03/31/2023',y:[574.00,576.00,570.00,570.00]},{ x:'04/06/2023',y:[570.00,583.00,567.00,583.00]},{ x:'04/07/2023',y:[588.00,588.00,574.00,578.00]},{ x:'04/10/2023',y:[582.00,592.00,580.00,585.00]},{ x:'04/11/2023',y:[590.00,591.00,577.00,585.00]},{ x:'04/12/2023',y:[586.00,591.00,582.00,587.00]},{ x:'04/13/2023',y:[591.00,605.00,589.00,598.00]},{ x:'04/14/2023',y:[603.00,603.00,590.00,590.00]},{ x:'04/17/2023',y:[597.00,597.00,585.00,585.00]},{ x:'04/18/2023',y:[592.00,604.00,590.00,602.00]},{ x:'04/19/2023',y:[594.00,627.00,594.00,618.00]},{ x:'04/20/2023',y:[618.00,621.00,586.00,587.00]},{ x:'04/21/2023',y:[591.00,591.00,572.00,580.00]},{ x:'04/24/2023',y:[580.00,605.00,575.00,603.00]},{ x:'04/25/2023',y:[627.00,627.00,580.00,580.00]},{ x:'04/26/2023',y:[580.00,597.00,572.00,583.00]},{ x:'04/27/2023',y:[589.00,589.00,573.00,583.00]},{ x:'04/28/2023',y:[584.00,589.00,574.00,574.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5904 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());