I am getting error while supplying aggregate function and then setting itemssource property of chart to datatable...
my code is like below..
Error i get...
"No generic method 'Sum' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic."
Does that mean i cant use datatable which includes aggregate function or...if possible then then how?
my code is like below..
Dim sm As New SeriesMapping
sm.SeriesDefinition = New LineSeriesDefinition
sm.ItemMappings.Add(New ItemMapping("VDate", DataPointMember.XCategory))
sm.ItemMappings.Add(New ItemMapping("Sales", DataPointMember.YValue, ChartAggregateFunction.Sum))
rd.SeriesMappings.Add(sm)
rd.ItemsSource = DataSetMain.Tables(3)
Error i get...
"No generic method 'Sum' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic."
Does that mean i cant use datatable which includes aggregate function or...if possible then then how?