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:'04/01/2024',y:[937.00,947.00,911.00,914.00]},{ x:'04/02/2024',y:[920.00,922.00,898.00,902.00]},{ x:'04/03/2024',y:[898.00,909.00,888.00,894.00]},{ x:'04/08/2024',y:[909.00,950.00,902.00,925.00]},{ x:'04/09/2024',y:[929.00,929.00,912.00,923.00]},{ x:'04/10/2024',y:[930.00,936.00,915.00,920.00]},{ x:'04/11/2024',y:[920.00,927.00,898.00,899.00]},{ x:'04/12/2024',y:[907.00,918.00,893.00,899.00]},{ x:'04/15/2024',y:[895.00,895.00,861.00,862.00]},{ x:'04/16/2024',y:[851.00,855.00,833.00,840.00]},{ x:'04/17/2024',y:[842.00,849.00,832.00,844.00]},{ x:'04/18/2024',y:[850.00,865.00,840.00,845.00]},{ x:'04/19/2024',y:[833.00,834.00,771.00,800.00]},{ x:'04/22/2024',y:[805.00,811.00,781.00,783.00]},{ x:'04/23/2024',y:[789.00,801.00,761.00,777.00]},{ x:'04/24/2024',y:[798.00,827.00,789.00,803.00]},{ x:'04/25/2024',y:[727.00,744.00,723.00,723.00]},{ x:'04/26/2024',y:[725.00,730.00,704.00,723.00]},{ x:'04/29/2024',y:[739.00,776.00,736.00,768.00]},{ x:'04/30/2024',y:[780.00,781.00,747.00,749.00]},{ x:'05/02/2024',y:[748.00,769.00,745.00,769.00]},{ x:'05/03/2024',y:[808.00,826.00,783.00,784.00]},{ x:'05/06/2024',y:[800.00,808.00,789.00,792.00]},{ x:'05/07/2024',y:[788.00,788.00,752.00,763.00]},{ x:'05/08/2024',y:[763.00,764.00,749.00,758.00]},{ x:'05/09/2024',y:[758.00,763.00,732.00,733.00]},{ x:'05/10/2024',y:[734.00,752.00,730.00,746.00]},{ x:'05/13/2024',y:[748.00,754.00,734.00,743.00]},{ x:'05/14/2024',y:[741.00,760.00,741.00,759.00]},{ x:'05/15/2024',y:[757.00,769.00,744.00,763.00]},{ x:'05/16/2024',y:[769.00,784.00,761.00,772.00]},{ x:'05/17/2024',y:[769.00,771.00,743.00,743.00]},{ x:'05/20/2024',y:[740.00,741.00,728.00,731.00]},{ x:'05/21/2024',y:[733.00,741.00,725.00,725.00]},{ x:'05/22/2024',y:[727.00,736.00,725.00,726.00]},{ x:'05/23/2024',y:[730.00,730.00,714.00,721.00]},{ x:'05/24/2024',y:[713.00,722.00,705.00,721.00]},{ x:'06/11/2024',y:[797.00,800.00,784.00,786.00]},{ x:'06/12/2024',y:[788.00,826.00,788.00,808.00]},{ x:'06/13/2024',y:[822.00,864.00,811.00,864.00]},{ x:'06/14/2024',y:[871.00,904.00,865.00,875.00]},{ x:'06/17/2024',y:[868.00,868.00,835.00,835.00]},{ x:'06/18/2024',y:[840.00,859.00,827.00,856.00]},{ x:'06/19/2024',y:[864.00,897.00,853.00,893.00]},{ x:'06/20/2024',y:[898.00,927.00,875.00,878.00]},{ x:'06/21/2024',y:[878.00,896.00,874.00,877.00]},{ x:'06/24/2024',y:[875.00,878.00,860.00,862.00]},{ x:'06/25/2024',y:[856.00,871.00,841.00,865.00]},{ x:'06/26/2024',y:[868.00,876.00,846.00,846.00]},{ x:'06/27/2024',y:[848.00,850.00,835.00,840.00]},{ x:'06/28/2024',y:[839.00,847.00,832.00,838.00]},{ x:'07/01/2024',y:[839.00,844.00,819.00,820.00]},{ x:'07/02/2024',y:[819.00,830.00,813.00,818.00]},{ x:'07/03/2024',y:[845.00,866.00,825.00,837.00]},{ x:'07/04/2024',y:[843.00,849.00,829.00,835.00]},{ x:'07/05/2024',y:[855.00,864.00,840.00,862.00]},{ x:'07/12/2024',y:[876.00,878.00,857.00,860.00]},{ x:'07/15/2024',y:[862.00,867.00,851.00,860.00]},{ x:'07/16/2024',y:[862.00,887.00,862.00,863.00]},{ x:'07/17/2024',y:[852.00,865.00,838.00,860.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4966 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());