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:'02/16/2023',y:[716.00,718.00,706.00,711.00]},{ x:'02/17/2023',y:[708.00,723.00,707.00,723.00]},{ x:'02/20/2023',y:[725.00,732.00,719.00,726.00]},{ x:'02/21/2023',y:[728.00,734.00,724.00,725.00]},{ x:'02/22/2023',y:[718.00,722.00,713.00,713.00]},{ x:'02/23/2023',y:[724.00,745.00,722.00,745.00]},{ x:'02/24/2023',y:[751.00,752.00,723.00,723.00]},{ x:'03/01/2023',y:[737.00,795.00,731.00,791.00]},{ x:'03/02/2023',y:[790.00,790.00,773.00,775.00]},{ x:'03/03/2023',y:[778.00,789.00,771.00,775.00]},{ x:'03/06/2023',y:[785.00,795.00,777.00,784.00]},{ x:'03/07/2023',y:[789.00,790.00,783.00,788.00]},{ x:'03/08/2023',y:[782.00,784.00,765.00,768.00]},{ x:'03/09/2023',y:[769.00,775.00,767.00,767.00]},{ x:'03/10/2023',y:[759.00,761.00,753.00,756.00]},{ x:'03/13/2023',y:[756.00,764.00,743.00,764.00]},{ x:'03/14/2023',y:[749.00,768.00,749.00,761.00]},{ x:'03/15/2023',y:[766.00,773.00,757.00,758.00]},{ x:'03/16/2023',y:[751.00,765.00,748.00,756.00]},{ x:'03/17/2023',y:[770.00,777.00,766.00,773.00]},{ x:'03/20/2023',y:[773.00,780.00,768.00,770.00]},{ x:'03/21/2023',y:[776.00,779.00,763.00,771.00]},{ x:'03/22/2023',y:[777.00,785.00,776.00,781.00]},{ x:'03/23/2023',y:[780.00,794.00,778.00,793.00]},{ x:'03/24/2023',y:[790.00,794.00,785.00,790.00]},{ x:'03/27/2023',y:[789.00,790.00,779.00,780.00]},{ x:'03/28/2023',y:[775.00,780.00,766.00,766.00]},{ x:'03/29/2023',y:[774.00,775.00,765.00,773.00]},{ x:'03/30/2023',y:[780.00,783.00,775.00,778.00]},{ x:'03/31/2023',y:[778.00,789.00,778.00,787.00]},{ x:'04/06/2023',y:[774.00,777.00,751.00,753.00]},{ x:'04/07/2023',y:[749.00,752.00,743.00,749.00]},{ x:'04/10/2023',y:[748.00,750.00,739.00,742.00]},{ x:'04/11/2023',y:[743.00,759.00,743.00,756.00]},{ x:'04/12/2023',y:[756.00,760.00,752.00,758.00]},{ x:'04/13/2023',y:[759.00,760.00,749.00,750.00]},{ x:'04/14/2023',y:[754.00,758.00,746.00,748.00]},{ x:'04/17/2023',y:[705.00,710.00,694.00,709.00]},{ x:'04/18/2023',y:[702.00,703.00,685.00,688.00]},{ x:'04/19/2023',y:[682.00,685.00,675.00,675.00]},{ x:'04/20/2023',y:[661.00,684.00,661.00,673.00]},{ x:'04/21/2023',y:[676.00,679.00,665.00,665.00]},{ x:'04/24/2023',y:[663.00,681.00,663.00,676.00]},{ x:'04/25/2023',y:[678.00,678.00,650.00,650.00]},{ x:'04/26/2023',y:[641.00,652.00,638.00,649.00]},{ x:'04/27/2023',y:[654.00,667.00,653.00,662.00]},{ x:'04/28/2023',y:[668.00,674.00,663.00,665.00]},{ x:'05/02/2023',y:[654.00,673.00,654.00,671.00]},{ x:'05/03/2023',y:[674.00,680.00,668.00,680.00]},{ x:'05/04/2023',y:[674.00,674.00,666.00,668.00]},{ x:'05/05/2023',y:[675.00,678.00,672.00,675.00]},{ x:'05/08/2023',y:[681.00,684.00,674.00,675.00]},{ x:'05/09/2023',y:[681.00,681.00,674.00,677.00]},{ x:'05/10/2023',y:[677.00,677.00,666.00,668.00]},{ x:'05/11/2023',y:[666.00,674.00,664.00,668.00]},{ x:'05/12/2023',y:[673.00,676.00,661.00,673.00]},{ x:'05/15/2023',y:[676.00,682.00,673.00,680.00]},{ x:'05/16/2023',y:[688.00,688.00,680.00,680.00]},{ x:'05/17/2023',y:[680.00,689.00,677.00,685.00]},{ x:'05/18/2023',y:[690.00,694.00,685.00,689.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2454 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());