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:'11/15/2022',y:[565.00,574.00,557.00,570.00]},{ x:'11/16/2022',y:[571.00,591.00,563.00,575.00]},{ x:'11/17/2022',y:[578.00,586.00,562.00,565.00]},{ x:'11/18/2022',y:[565.00,582.00,561.00,575.00]},{ x:'11/21/2022',y:[580.00,580.00,558.00,559.00]},{ x:'11/22/2022',y:[567.00,576.00,556.00,572.00]},{ x:'11/23/2022',y:[590.00,593.00,579.00,580.00]},{ x:'11/24/2022',y:[582.00,596.00,582.00,589.00]},{ x:'11/25/2022',y:[597.00,600.00,588.00,597.00]},{ x:'11/28/2022',y:[591.00,597.00,584.00,590.00]},{ x:'11/29/2022',y:[586.00,604.00,586.00,602.00]},{ x:'11/30/2022',y:[607.00,620.00,597.00,600.00]},{ x:'12/01/2022',y:[616.00,648.00,616.00,622.00]},{ x:'12/02/2022',y:[635.00,635.00,605.00,608.00]},{ x:'12/05/2022',y:[606.00,634.00,600.00,632.00]},{ x:'12/06/2022',y:[626.00,630.00,602.00,605.00]},{ x:'12/07/2022',y:[602.00,637.00,602.00,624.00]},{ x:'12/08/2022',y:[622.00,628.00,608.00,622.00]},{ x:'12/09/2022',y:[627.00,645.00,625.00,636.00]},{ x:'12/12/2022',y:[636.00,645.00,627.00,631.00]},{ x:'12/13/2022',y:[645.00,654.00,614.00,616.00]},{ x:'12/14/2022',y:[629.00,631.00,622.00,630.00]},{ x:'12/15/2022',y:[638.00,638.00,616.00,618.00]},{ x:'12/16/2022',y:[609.00,624.00,609.00,612.00]},{ x:'12/19/2022',y:[604.00,614.00,601.00,603.00]},{ x:'12/20/2022',y:[603.00,608.00,572.00,575.00]},{ x:'12/21/2022',y:[585.00,604.00,580.00,604.00]},{ x:'12/22/2022',y:[611.00,629.00,607.00,626.00]},{ x:'12/23/2022',y:[614.00,634.00,609.00,626.00]},{ x:'12/26/2022',y:[628.00,647.00,624.00,643.00]},{ x:'12/27/2022',y:[650.00,655.00,632.00,634.00]},{ x:'12/28/2022',y:[631.00,663.00,631.00,662.00]},{ x:'12/29/2022',y:[659.00,659.00,643.00,655.00]},{ x:'12/30/2022',y:[665.00,665.00,642.00,642.00]},{ x:'01/03/2023',y:[645.00,660.00,638.00,659.00]},{ x:'01/04/2023',y:[660.00,700.00,660.00,698.00]},{ x:'01/05/2023',y:[707.00,765.00,706.00,729.00]},{ x:'01/06/2023',y:[729.00,732.00,710.00,711.00]},{ x:'01/09/2023',y:[739.00,750.00,716.00,724.00]},{ x:'01/10/2023',y:[730.00,742.00,719.00,737.00]},{ x:'01/11/2023',y:[754.00,802.00,744.00,800.00]},{ x:'01/12/2023',y:[800.00,803.00,770.00,786.00]},{ x:'01/13/2023',y:[797.00,797.00,776.00,781.00]},{ x:'01/16/2023',y:[792.00,795.00,773.00,782.00]},{ x:'01/17/2023',y:[782.00,825.00,782.00,798.00]},{ x:'01/30/2023',y:[801.00,821.00,793.00,803.00]},{ x:'01/31/2023',y:[803.00,803.00,787.00,793.00]},{ x:'02/01/2023',y:[796.00,803.00,779.00,800.00]},{ x:'02/02/2023',y:[808.00,814.00,798.00,804.00]},{ x:'02/03/2023',y:[792.00,799.00,754.00,777.00]},{ x:'02/06/2023',y:[764.00,771.00,755.00,755.00]},{ x:'02/07/2023',y:[754.00,761.00,742.00,749.00]},{ x:'02/08/2023',y:[753.00,775.00,751.00,765.00]},{ x:'02/09/2023',y:[766.00,770.00,748.00,750.00]},{ x:'02/10/2023',y:[747.00,760.00,743.00,744.00]},{ x:'02/13/2023',y:[742.00,760.00,739.00,743.00]},{ x:'02/14/2023',y:[750.00,761.00,746.00,760.00]},{ x:'02/15/2023',y:[757.00,765.00,743.00,749.00]},{ x:'02/16/2023',y:[765.00,794.00,765.00,769.00]},{ x:'02/17/2023',y:[772.00,775.00,754.00,754.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8454 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());