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/12/2023',y:[710.00,720.00,708.00,715.00]},{ x:'01/13/2023',y:[722.00,726.00,691.00,694.00]},{ x:'01/16/2023',y:[707.00,712.00,701.00,704.00]},{ x:'01/17/2023',y:[706.00,709.00,693.00,693.00]},{ x:'01/30/2023',y:[734.00,739.00,709.00,739.00]},{ x:'01/31/2023',y:[734.00,752.00,716.00,718.00]},{ x:'02/01/2023',y:[724.00,728.00,718.00,724.00]},{ x:'02/02/2023',y:[747.00,753.00,737.00,747.00]},{ x:'02/03/2023',y:[742.00,753.00,741.00,751.00]},{ x:'02/06/2023',y:[745.00,749.00,730.00,731.00]},{ x:'02/07/2023',y:[739.00,739.00,716.00,717.00]},{ x:'02/08/2023',y:[726.00,747.00,725.00,744.00]},{ x:'02/09/2023',y:[740.00,749.00,736.00,749.00]},{ x:'02/10/2023',y:[749.00,749.00,739.00,740.00]},{ x:'02/13/2023',y:[735.00,737.00,726.00,731.00]},{ x:'02/14/2023',y:[737.00,742.00,731.00,732.00]},{ x:'02/15/2023',y:[730.00,730.00,708.00,710.00]},{ 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]} ] }], 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());