This question is locked. New answers and comments are not allowed.
I tried to bind dynamic list like below but failed.
It seems something wrong with the seriesmapping?
Is it possible to bind a dynamic object list to a line chart or bar chart?
P.S
I use linq to query the dynamic objects
Thanks!
ObservableCollection<
dynamic
> cases
mapping.ItemsSource = cases ;
mapping.ItemMappings.Add(new ItemMapping(this.YValue, DataPointMember.YValue));
It seems something wrong with the seriesmapping?
Is it possible to bind a dynamic object list to a line chart or bar chart?
P.S
I use linq to query the dynamic objects
IEnumerable<
dynamic
> callStats = (from c in ipCases
group c by c.Year into d
select new
{
Year = Convert.ToInt32(d.Key.ToString()),
CaseCounts = d.Sum(x => x.CaseCount)
} as dynamic);
Thanks!