Hi,
I'm testing out this library and I'm getting the following error:
No method 'Average' on type 'System.Linq.Enumerable' is compatible with the supplied arguments.
I'm doing a very simple test. Here is the relevant code:
When m_Data has more then 397 elements it throws that error. Before that number it looks pretty.
Any help will be greatly appreciated.
- Luis
I'm testing out this library and I'm getting the following error:
No method 'Average' on type 'System.Linq.Enumerable' is compatible with the supplied arguments.
I'm doing a very simple test. Here is the relevant code:
| public class Data |
| { |
| public UInt32 XValue { get; set; } |
| public double YValue { get; set; } |
| } |
| List<Data> m_Data; // This is initialized with data. |
| // Then, when setting up the chart... |
| SeriesMapping seriesMapping = new SeriesMapping(); |
| LineSeriesDefinition lineDefinition = new LineSeriesDefinition(); |
| lineDefinition.ShowItemLabels = false; |
| seriesMapping.SeriesDefinition = lineDefinition; |
| seriesMapping.ItemMappings.Add(new ItemMapping("XValue", DataPointMember.XValue)); |
| seriesMapping.ItemMappings.Add(new ItemMapping("YValue", DataPointMember.YValue)); |
| MyChart.SeriesMappings.Add(seriesMapping); |
| // Then I set my data |
| MyChart.ItemSource = m_Data; |
When m_Data has more then 397 elements it throws that error. Before that number it looks pretty.
Any help will be greatly appreciated.
- Luis