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:'12/13/2022',y:[717.00,722.00,708.00,709.00]},{ x:'12/14/2022',y:[717.00,724.00,714.00,718.00]},{ x:'12/15/2022',y:[703.00,706.00,681.00,681.00]},{ x:'12/16/2022',y:[653.00,665.00,651.00,660.00]},{ x:'12/19/2022',y:[650.00,662.00,650.00,656.00]},{ x:'12/20/2022',y:[650.00,660.00,646.00,646.00]},{ x:'12/21/2022',y:[649.00,661.00,646.00,654.00]},{ x:'12/22/2022',y:[665.00,668.00,661.00,661.00]},{ x:'12/23/2022',y:[651.00,661.00,648.00,660.00]},{ x:'12/26/2022',y:[661.00,661.00,651.00,651.00]},{ x:'12/27/2022',y:[654.00,664.00,653.00,656.00]},{ x:'12/28/2022',y:[649.00,649.00,621.00,638.00]},{ x:'12/29/2022',y:[630.00,631.00,623.00,629.00]},{ x:'12/30/2022',y:[635.00,640.00,625.00,625.00]},{ x:'01/03/2023',y:[623.00,645.00,621.00,644.00]},{ x:'01/04/2023',y:[639.00,644.00,635.00,636.00]},{ x:'01/05/2023',y:[638.00,641.00,625.00,631.00]},{ x:'01/06/2023',y:[634.00,660.00,634.00,660.00]},{ x:'01/09/2023',y:[671.00,675.00,665.00,675.00]},{ x:'01/10/2023',y:[684.00,696.00,681.00,694.00]},{ x:'01/11/2023',y:[700.00,707.00,694.00,707.00]},{ 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]} ] }], 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());