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:'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]},{ x:'04/29/2024',y:[790.00,795.00,787.00,795.00]},{ x:'04/30/2024',y:[797.00,802.00,790.00,790.00]},{ x:'05/02/2024',y:[789.00,789.00,772.00,772.00]},{ x:'05/03/2024',y:[788.00,788.00,773.00,780.00]},{ x:'05/06/2024',y:[791.00,793.00,786.00,786.00]},{ x:'05/07/2024',y:[797.00,800.00,792.00,800.00]},{ x:'05/08/2024',y:[794.00,802.00,792.00,802.00]},{ x:'05/09/2024',y:[798.00,802.00,796.00,796.00]},{ x:'05/10/2024',y:[803.00,807.00,798.00,802.00]},{ x:'05/13/2024',y:[823.00,825.00,818.00,819.00]},{ x:'05/14/2024',y:[816.00,825.00,811.00,825.00]},{ x:'05/15/2024',y:[838.00,844.00,837.00,839.00]},{ x:'05/16/2024',y:[852.00,856.00,837.00,841.00]},{ x:'05/17/2024',y:[848.00,848.00,834.00,835.00]},{ x:'05/20/2024',y:[834.00,838.00,822.00,835.00]},{ x:'05/21/2024',y:[830.00,841.00,830.00,841.00]},{ x:'05/22/2024',y:[845.00,865.00,843.00,864.00]},{ x:'05/23/2024',y:[875.00,877.00,867.00,875.00]},{ x:'05/24/2024',y:[858.00,872.00,858.00,867.00]},{ x:'06/11/2024',y:[892.00,895.00,883.00,883.00]},{ x:'06/12/2024',y:[888.00,914.00,888.00,909.00]},{ x:'06/13/2024',y:[923.00,935.00,911.00,919.00]},{ x:'06/14/2024',y:[916.00,922.00,905.00,922.00]},{ x:'06/17/2024',y:[913.00,925.00,913.00,921.00]},{ x:'06/18/2024',y:[944.00,950.00,940.00,943.00]},{ x:'06/19/2024',y:[953.00,984.00,953.00,981.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());