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/23/2024',y:[675.00,676.00,666.00,666.00]},{ x:'01/24/2024',y:[668.00,680.00,665.00,669.00]},{ x:'01/25/2024',y:[672.00,678.00,658.00,658.00]},{ x:'01/26/2024',y:[659.00,676.00,658.00,674.00]},{ x:'01/29/2024',y:[669.00,671.00,661.00,665.00]},{ x:'01/30/2024',y:[670.00,676.00,664.00,672.00]},{ x:'01/31/2024',y:[676.00,684.00,672.00,673.00]},{ x:'02/01/2024',y:[681.00,682.00,670.00,677.00]},{ x:'02/02/2024',y:[680.00,680.00,668.00,671.00]},{ x:'02/05/2024',y:[669.00,673.00,656.00,657.00]},{ x:'02/15/2024',y:[655.00,655.00,640.00,643.00]},{ x:'02/16/2024',y:[648.00,653.00,645.00,645.00]},{ x:'02/19/2024',y:[649.00,653.00,636.00,636.00]},{ x:'02/20/2024',y:[636.00,643.00,635.00,641.00]},{ x:'02/21/2024',y:[643.00,647.00,640.00,640.00]},{ x:'02/22/2024',y:[642.00,656.00,636.00,652.00]},{ x:'02/23/2024',y:[658.00,658.00,646.00,646.00]},{ x:'02/26/2024',y:[652.00,683.00,651.00,679.00]},{ x:'02/27/2024',y:[680.00,684.00,666.00,672.00]},{ x:'02/29/2024',y:[679.00,679.00,663.00,669.00]},{ x:'03/01/2024',y:[671.00,677.00,667.00,668.00]},{ x:'03/04/2024',y:[676.00,684.00,669.00,676.00]},{ x:'03/05/2024',y:[677.00,701.00,677.00,690.00]},{ x:'03/06/2024',y:[692.00,696.00,664.00,665.00]},{ x:'03/07/2024',y:[666.00,668.00,650.00,659.00]},{ x:'03/08/2024',y:[651.00,659.00,630.00,630.00]},{ x:'03/11/2024',y:[620.00,630.00,612.00,625.00]},{ x:'03/12/2024',y:[626.00,642.00,626.00,638.00]},{ x:'03/13/2024',y:[642.00,643.00,626.00,626.00]},{ x:'03/14/2024',y:[625.00,639.00,625.00,626.00]},{ x:'03/15/2024',y:[630.00,636.00,618.00,627.00]},{ x:'03/18/2024',y:[635.00,643.00,623.00,624.00]},{ x:'03/19/2024',y:[623.00,630.00,620.00,620.00]},{ x:'03/20/2024',y:[622.00,626.00,620.00,621.00]},{ x:'03/21/2024',y:[624.00,626.00,619.00,619.00]},{ x:'03/22/2024',y:[624.00,625.00,618.00,620.00]},{ x:'03/25/2024',y:[625.00,635.00,624.00,625.00]},{ x:'03/26/2024',y:[630.00,633.00,620.00,620.00]},{ x:'03/27/2024',y:[622.00,654.00,622.00,645.00]},{ x:'03/28/2024',y:[654.00,661.00,646.00,646.00]},{ x:'03/29/2024',y:[657.00,657.00,648.00,653.00]},{ x:'04/01/2024',y:[655.00,674.00,650.00,667.00]},{ x:'04/02/2024',y:[673.00,697.00,669.00,692.00]},{ x:'04/03/2024',y:[699.00,761.00,693.00,761.00]},{ x:'04/08/2024',y:[772.00,782.00,739.00,739.00]},{ x:'04/09/2024',y:[747.00,775.00,730.00,758.00]},{ x:'04/10/2024',y:[736.00,833.00,730.00,830.00]},{ x:'04/11/2024',y:[825.00,845.00,803.00,817.00]},{ x:'04/12/2024',y:[819.00,825.00,746.00,790.00]},{ x:'04/15/2024',y:[791.00,835.00,791.00,795.00]},{ x:'04/16/2024',y:[808.00,809.00,758.00,771.00]},{ x:'04/17/2024',y:[775.00,783.00,754.00,754.00]},{ x:'04/18/2024',y:[752.00,756.00,731.00,731.00]},{ x:'04/19/2024',y:[735.00,753.00,690.00,706.00]},{ x:'04/22/2024',y:[712.00,737.00,704.00,718.00]},{ x:'04/23/2024',y:[730.00,771.00,722.00,751.00]},{ x:'04/24/2024',y:[758.00,770.00,742.00,757.00]},{ x:'04/25/2024',y:[758.00,770.00,754.00,756.00]},{ x:'04/26/2024',y:[764.00,767.00,749.00,752.00]},{ x:'04/29/2024',y:[757.00,790.00,756.00,783.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6472 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());