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:[704.00,735.00,700.00,722.00]},{ x:'11/16/2022',y:[732.00,738.00,719.00,729.00]},{ x:'11/17/2022',y:[740.00,740.00,716.00,725.00]},{ x:'11/18/2022',y:[732.00,742.00,716.00,722.00]},{ x:'11/21/2022',y:[716.00,722.00,709.00,720.00]},{ x:'11/22/2022',y:[707.00,715.00,703.00,713.00]},{ x:'11/23/2022',y:[722.00,722.00,705.00,705.00]},{ x:'11/24/2022',y:[715.00,736.00,711.00,728.00]},{ x:'11/25/2022',y:[729.00,736.00,723.00,727.00]},{ x:'11/28/2022',y:[703.00,719.00,703.00,703.00]},{ x:'11/29/2022',y:[695.00,718.00,695.00,713.00]},{ x:'11/30/2022',y:[714.00,738.00,711.00,733.00]},{ x:'12/01/2022',y:[750.00,756.00,738.00,741.00]},{ x:'12/02/2022',y:[730.00,748.00,730.00,739.00]},{ x:'12/05/2022',y:[739.00,755.00,739.00,739.00]},{ x:'12/06/2022',y:[739.00,744.00,720.00,725.00]},{ x:'12/07/2022',y:[717.00,728.00,713.00,716.00]},{ x:'12/08/2022',y:[724.00,725.00,705.00,705.00]},{ x:'12/09/2022',y:[714.00,729.00,711.00,729.00]},{ x:'12/12/2022',y:[715.00,716.00,705.00,712.00]},{ 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]} ] }], 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());