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:'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]},{ x:'05/19/2023',y:[691.00,698.00,690.00,698.00]},{ x:'05/22/2023',y:[702.00,709.00,701.00,705.00]},{ x:'05/23/2023',y:[710.00,722.00,708.00,716.00]},{ x:'05/24/2023',y:[713.00,713.00,701.00,711.00]},{ x:'05/25/2023',y:[708.00,718.00,706.00,708.00]},{ x:'05/26/2023',y:[708.00,737.00,708.00,730.00]},{ x:'05/29/2023',y:[755.00,758.00,738.00,738.00]},{ x:'05/30/2023',y:[759.00,773.00,757.00,763.00]},{ x:'05/31/2023',y:[757.00,767.00,748.00,759.00]},{ x:'06/01/2023',y:[755.00,761.00,748.00,748.00]},{ x:'06/02/2023',y:[754.00,762.00,750.00,751.00]},{ x:'06/05/2023',y:[757.00,767.00,757.00,759.00]},{ x:'06/06/2023',y:[760.00,764.00,752.00,757.00]},{ x:'06/07/2023',y:[759.00,769.00,756.00,768.00]},{ x:'06/08/2023',y:[770.00,775.00,763.00,768.00]},{ x:'06/09/2023',y:[768.00,770.00,761.00,764.00]},{ x:'06/12/2023',y:[769.00,769.00,763.00,767.00]},{ x:'06/13/2023',y:[770.00,782.00,768.00,779.00]},{ x:'06/14/2023',y:[781.00,782.00,776.00,780.00]},{ x:'06/15/2023',y:[777.00,779.00,765.00,766.00]},{ x:'06/16/2023',y:[760.00,765.00,751.00,751.00]},{ x:'06/19/2023',y:[769.00,793.00,764.00,785.00]},{ x:'06/20/2023',y:[708.00,725.00,691.00,691.00]},{ x:'06/21/2023',y:[689.00,696.00,683.00,693.00]},{ x:'06/26/2023',y:[688.00,690.00,685.00,685.00]},{ x:'06/27/2023',y:[680.00,688.00,680.00,681.00]},{ x:'06/28/2023',y:[692.00,697.00,685.00,695.00]},{ x:'06/29/2023',y:[704.00,705.00,695.00,696.00]},{ x:'06/30/2023',y:[692.00,692.00,686.00,688.00]},{ x:'07/03/2023',y:[692.00,698.00,690.00,691.00]},{ x:'07/04/2023',y:[696.00,702.00,691.00,700.00]},{ x:'07/05/2023',y:[703.00,703.00,696.00,697.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());