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/22/2024',y:[633.00,633.00,623.00,626.00]},{ x:'01/23/2024',y:[629.00,629.00,622.00,628.00]},{ x:'01/24/2024',y:[628.00,630.00,624.00,627.00]},{ x:'01/25/2024',y:[635.00,642.00,633.00,642.00]},{ x:'01/26/2024',y:[644.00,646.00,639.00,644.00]},{ x:'01/29/2024',y:[646.00,648.00,644.00,648.00]},{ x:'01/30/2024',y:[642.00,647.00,642.00,642.00]},{ x:'01/31/2024',y:[634.00,637.00,626.00,628.00]},{ x:'02/01/2024',y:[625.00,628.00,619.00,628.00]},{ x:'02/02/2024',y:[633.00,635.00,628.00,635.00]},{ x:'02/05/2024',y:[645.00,647.00,638.00,646.00]},{ x:'02/15/2024',y:[709.00,709.00,693.00,697.00]},{ x:'02/16/2024',y:[697.00,699.00,683.00,683.00]},{ x:'02/19/2024',y:[674.00,682.00,674.00,678.00]},{ x:'02/20/2024',y:[675.00,688.00,675.00,687.00]},{ x:'02/21/2024',y:[678.00,683.00,678.00,681.00]},{ x:'02/22/2024',y:[695.00,695.00,685.00,692.00]},{ x:'02/23/2024',y:[701.00,703.00,696.00,697.00]},{ x:'02/26/2024',y:[700.00,700.00,695.00,698.00]},{ x:'02/27/2024',y:[700.00,701.00,691.00,698.00]},{ x:'02/29/2024',y:[691.00,698.00,688.00,690.00]},{ x:'03/01/2024',y:[697.00,697.00,688.00,689.00]},{ x:'03/04/2024',y:[714.00,725.00,711.00,725.00]},{ x:'03/05/2024',y:[735.00,738.00,728.00,730.00]},{ x:'03/06/2024',y:[718.00,738.00,717.00,735.00]},{ x:'03/07/2024',y:[755.00,769.00,754.00,760.00]},{ x:'03/08/2024',y:[795.00,796.00,772.00,784.00]},{ x:'03/11/2024',y:[768.00,778.00,761.00,766.00]},{ x:'03/12/2024',y:[757.00,771.00,754.00,770.00]},{ x:'03/13/2024',y:[785.00,785.00,777.00,779.00]},{ x:'03/14/2024',y:[779.00,785.00,770.00,784.00]},{ x:'03/15/2024',y:[771.00,777.00,753.00,753.00]},{ x:'03/18/2024',y:[754.00,765.00,754.00,764.00]},{ x:'03/19/2024',y:[758.00,765.00,755.00,762.00]},{ x:'03/20/2024',y:[764.00,769.00,752.00,758.00]},{ x:'03/21/2024',y:[773.00,784.00,772.00,784.00]},{ x:'03/22/2024',y:[788.00,789.00,775.00,785.00]},{ x:'03/25/2024',y:[783.00,788.00,779.00,780.00]},{ x:'03/26/2024',y:[788.00,792.00,776.00,782.00]},{ x:'03/27/2024',y:[785.00,785.00,779.00,779.00]},{ x:'03/28/2024',y:[774.00,776.00,768.00,769.00]},{ x:'03/29/2024',y:[769.00,781.00,768.00,779.00]},{ x:'04/01/2024',y:[783.00,783.00,769.00,770.00]},{ x:'04/02/2024',y:[784.00,790.00,783.00,790.00]},{ x:'04/03/2024',y:[783.00,785.00,778.00,780.00]},{ x:'04/08/2024',y:[789.00,792.00,783.00,783.00]},{ x:'04/09/2024',y:[795.00,820.00,792.00,819.00]},{ x:'04/10/2024',y:[815.00,819.00,810.00,815.00]},{ x:'04/11/2024',y:[811.00,820.00,811.00,820.00]},{ x:'04/12/2024',y:[823.00,826.00,817.00,818.00]},{ x:'04/15/2024',y:[804.00,812.00,803.00,806.00]},{ x:'04/16/2024',y:[802.00,803.00,785.00,788.00]},{ x:'04/17/2024',y:[798.00,808.00,793.00,804.00]},{ x:'04/18/2024',y:[796.00,810.00,792.00,804.00]},{ x:'04/19/2024',y:[769.00,770.00,746.00,750.00]},{ x:'04/22/2024',y:[740.00,757.00,740.00,742.00]},{ x:'04/23/2024',y:[761.00,761.00,752.00,754.00]},{ x:'04/24/2024',y:[770.00,785.00,769.00,783.00]},{ x:'04/25/2024',y:[770.00,774.00,765.00,766.00]},{ x:'04/26/2024',y:[788.00,789.00,782.00,782.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2330 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());