I am using this code to populate a series from an anonymous type:
IChartSerie serieAñoActual = grafico.Series.Add(ExcelChartType.Line_Markers);
serieAñoActual.EnteredDirectlyValues = _datos
.Where(d => (int)d.GetType().GetProperty("Año").GetValue(d) == añoActual)
.Select(d => (d.GetType().GetProperty("Actividad").GetValue(d)))
.ToArray();
The values appear correctly, but not formatted, meaning instead of appearing as "5000," it should appear as "5,000."
Thank you in advance.
Regards