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:'08/07/2023',y:[709.00,712.00,703.00,706.00]},{ x:'08/08/2023',y:[705.00,705.00,690.00,690.00]},{ x:'08/09/2023',y:[689.00,702.00,686.00,701.00]},{ x:'08/10/2023',y:[702.00,703.00,688.00,693.00]},{ x:'08/11/2023',y:[688.00,689.00,675.00,679.00]},{ x:'08/14/2023',y:[672.00,673.00,666.00,672.00]},{ x:'08/15/2023',y:[682.00,684.00,676.00,678.00]},{ x:'08/16/2023',y:[698.00,698.00,683.00,689.00]},{ x:'08/17/2023',y:[680.00,681.00,673.00,674.00]},{ x:'08/18/2023',y:[670.00,679.00,669.00,674.00]},{ x:'08/21/2023',y:[678.00,679.00,667.00,669.00]},{ x:'08/22/2023',y:[675.00,682.00,668.00,672.00]},{ x:'08/23/2023',y:[672.00,676.00,670.00,671.00]},{ x:'08/24/2023',y:[682.00,692.00,680.00,691.00]},{ x:'08/25/2023',y:[692.00,695.00,687.00,694.00]},{ x:'08/28/2023',y:[700.00,709.00,698.00,701.00]},{ x:'08/29/2023',y:[714.00,716.00,702.00,710.00]},{ x:'08/30/2023',y:[714.00,715.00,702.00,709.00]},{ x:'08/31/2023',y:[705.00,714.00,704.00,705.00]},{ x:'09/01/2023',y:[707.00,712.00,701.00,710.00]},{ x:'09/04/2023',y:[713.00,713.00,705.00,711.00]},{ x:'09/05/2023',y:[712.00,718.00,711.00,718.00]},{ x:'09/06/2023',y:[721.00,722.00,712.00,712.00]},{ x:'09/07/2023',y:[709.00,718.00,708.00,717.00]},{ x:'09/08/2023',y:[705.00,710.00,701.00,709.00]},{ x:'09/11/2023',y:[715.00,715.00,708.00,714.00]},{ x:'09/12/2023',y:[710.00,729.00,709.00,728.00]},{ x:'09/13/2023',y:[739.00,744.00,729.00,732.00]},{ x:'09/14/2023',y:[735.00,735.00,725.00,733.00]},{ x:'09/15/2023',y:[741.00,763.00,737.00,763.00]},{ x:'09/18/2023',y:[751.00,792.00,750.00,782.00]},{ x:'09/19/2023',y:[782.00,782.00,764.00,773.00]},{ x:'09/20/2023',y:[765.00,766.00,751.00,759.00]},{ x:'09/21/2023',y:[752.00,762.00,744.00,746.00]},{ x:'09/22/2023',y:[735.00,748.00,728.00,746.00]},{ x:'09/25/2023',y:[741.00,762.00,741.00,755.00]},{ x:'09/26/2023',y:[748.00,755.00,736.00,737.00]},{ x:'09/27/2023',y:[728.00,737.00,728.00,737.00]},{ x:'09/28/2023',y:[739.00,741.00,730.00,735.00]},{ x:'10/02/2023',y:[747.00,748.00,740.00,745.00]},{ x:'10/03/2023',y:[767.00,784.00,766.00,772.00]},{ x:'10/04/2023',y:[771.00,783.00,764.00,780.00]},{ x:'10/05/2023',y:[783.00,786.00,776.00,786.00]},{ x:'10/06/2023',y:[790.00,790.00,781.00,786.00]},{ x:'10/11/2023',y:[790.00,816.00,790.00,814.00]},{ x:'10/12/2023',y:[817.00,819.00,805.00,815.00]},{ x:'10/13/2023',y:[820.00,842.00,818.00,842.00]},{ x:'10/18/2023',y:[800.00,822.00,800.00,813.00]},{ x:'10/19/2023',y:[811.00,838.00,811.00,830.00]},{ x:'10/20/2023',y:[831.00,837.00,812.00,828.00]},{ x:'10/23/2023',y:[825.00,829.00,816.00,821.00]},{ x:'10/24/2023',y:[821.00,823.00,804.00,816.00]},{ x:'10/25/2023',y:[818.00,832.00,816.00,822.00]},{ x:'10/26/2023',y:[815.00,817.00,811.00,817.00]},{ x:'10/27/2023',y:[824.00,824.00,800.00,801.00]},{ x:'10/31/2023',y:[860.00,861.00,834.00,842.00]},{ x:'11/01/2023',y:[854.00,856.00,832.00,846.00]},{ x:'11/02/2023',y:[863.00,877.00,855.00,868.00]},{ x:'11/03/2023',y:[872.00,876.00,864.00,870.00]},{ x:'11/06/2023',y:[879.00,890.00,873.00,882.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());