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:'07/13/2023',y:[692.00,693.00,680.00,680.00]},{ x:'07/14/2023',y:[686.00,698.00,685.00,692.00]},{ x:'07/17/2023',y:[692.00,692.00,681.00,683.00]},{ x:'07/18/2023',y:[680.00,686.00,678.00,683.00]},{ x:'07/19/2023',y:[690.00,699.00,689.00,696.00]},{ x:'07/20/2023',y:[697.00,697.00,689.00,692.00]},{ x:'07/21/2023',y:[677.00,683.00,652.00,682.00]},{ x:'07/24/2023',y:[679.00,690.00,673.00,675.00]},{ x:'07/25/2023',y:[675.00,679.00,665.00,665.00]},{ x:'07/26/2023',y:[665.00,670.00,654.00,655.00]},{ x:'07/27/2023',y:[658.00,661.00,654.00,658.00]},{ x:'07/28/2023',y:[660.00,666.00,655.00,658.00]},{ x:'07/31/2023',y:[691.00,698.00,684.00,690.00]},{ x:'08/01/2023',y:[700.00,715.00,695.00,713.00]},{ x:'08/02/2023',y:[712.00,720.00,704.00,709.00]},{ x:'08/04/2023',y:[710.00,711.00,699.00,706.00]},{ 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]} ] }], 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());