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/23/2024',y:[788.00,789.00,767.00,780.00]},{ x:'01/24/2024',y:[786.00,792.00,772.00,777.00]},{ x:'01/25/2024',y:[785.00,786.00,760.00,761.00]},{ x:'01/26/2024',y:[770.00,799.00,769.00,775.00]},{ x:'01/29/2024',y:[764.00,788.00,764.00,785.00]},{ x:'01/30/2024',y:[798.00,817.00,789.00,816.00]},{ x:'01/31/2024',y:[813.00,818.00,788.00,793.00]},{ x:'02/01/2024',y:[790.00,791.00,770.00,773.00]},{ x:'02/02/2024',y:[781.00,790.00,777.00,779.00]},{ x:'02/05/2024',y:[778.00,778.00,766.00,768.00]},{ x:'02/15/2024',y:[785.00,844.00,785.00,843.00]},{ x:'02/16/2024',y:[847.00,852.00,815.00,815.00]},{ x:'02/19/2024',y:[816.00,822.00,784.00,790.00]},{ x:'02/20/2024',y:[792.00,793.00,760.00,767.00]},{ x:'02/21/2024',y:[772.00,781.00,767.00,771.00]},{ x:'02/22/2024',y:[783.00,793.00,764.00,764.00]},{ x:'02/23/2024',y:[777.00,782.00,763.00,770.00]},{ x:'02/26/2024',y:[769.00,778.00,766.00,775.00]},{ x:'02/27/2024',y:[780.00,789.00,765.00,765.00]},{ x:'02/29/2024',y:[765.00,775.00,764.00,767.00]},{ x:'03/01/2024',y:[776.00,809.00,776.00,795.00]},{ x:'03/04/2024',y:[819.00,820.00,782.00,782.00]},{ x:'03/05/2024',y:[789.00,794.00,779.00,784.00]},{ x:'03/06/2024',y:[784.00,784.00,768.00,770.00]},{ x:'03/07/2024',y:[784.00,805.00,766.00,767.00]},{ x:'03/08/2024',y:[775.00,775.00,728.00,731.00]},{ x:'03/11/2024',y:[730.00,737.00,693.00,699.00]},{ x:'03/12/2024',y:[703.00,720.00,696.00,700.00]},{ x:'03/13/2024',y:[719.00,724.00,701.00,705.00]},{ x:'03/14/2024',y:[711.00,711.00,685.00,696.00]},{ x:'03/15/2024',y:[692.00,718.00,689.00,712.00]},{ x:'03/18/2024',y:[713.00,744.00,707.00,740.00]},{ x:'03/19/2024',y:[734.00,749.00,734.00,742.00]},{ x:'03/20/2024',y:[743.00,749.00,726.00,726.00]},{ x:'03/21/2024',y:[736.00,752.00,735.00,749.00]},{ x:'03/22/2024',y:[752.00,752.00,725.00,735.00]},{ x:'03/25/2024',y:[740.00,743.00,730.00,735.00]},{ x:'03/26/2024',y:[743.00,743.00,709.00,709.00]},{ x:'03/27/2024',y:[711.00,719.00,697.00,714.00]},{ x:'03/28/2024',y:[720.00,726.00,707.00,708.00]},{ x:'03/29/2024',y:[709.00,725.00,709.00,719.00]},{ x:'04/01/2024',y:[727.00,732.00,717.00,722.00]},{ x:'04/02/2024',y:[722.00,773.00,718.00,766.00]},{ x:'04/03/2024',y:[766.00,781.00,758.00,771.00]},{ x:'04/08/2024',y:[775.00,782.00,760.00,774.00]},{ x:'04/09/2024',y:[778.00,825.00,778.00,816.00]},{ x:'04/10/2024',y:[825.00,835.00,807.00,826.00]},{ x:'04/11/2024',y:[820.00,907.00,815.00,904.00]},{ x:'04/12/2024',y:[904.00,938.00,885.00,931.00]},{ x:'04/15/2024',y:[924.00,929.00,884.00,885.00]},{ x:'04/16/2024',y:[878.00,879.00,799.00,814.00]},{ x:'04/17/2024',y:[826.00,877.00,819.00,844.00]},{ x:'04/18/2024',y:[836.00,866.00,814.00,819.00]},{ x:'04/19/2024',y:[805.00,835.00,803.00,820.00]},{ x:'04/22/2024',y:[822.00,828.00,782.00,790.00]},{ x:'04/23/2024',y:[803.00,810.00,764.00,775.00]},{ x:'04/24/2024',y:[795.00,826.00,795.00,820.00]},{ x:'04/25/2024',y:[810.00,822.00,802.00,814.00]},{ x:'04/26/2024',y:[833.00,863.00,822.00,843.00]},{ x:'04/29/2024',y:[853.00,865.00,834.00,838.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6515 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());