Hello,
I've been having some difficulties with the doughnut chart recently (might be due to the recent 14.1 upgrade) but I have my a doughnut chart which I am binding to and my datasource is an oberservable collection within an observable collection.
Like so:
public class DoughnutChartSource : NotificationObject { public string Name { get; set; } public decimal Value { get; set; } public string Label { get; set; } private ObservableCollection<PieChartSource> _children; public ObservableCollection<PieChartSource> Children { get { return _children; } set { if (_children == value) return; _children = value; base.OnPropertyChanged("Children"); } } public DoughnutChartSource() { Children = new ObservableCollection<PieChartSource>(); } }
In the constructor of my viewmodel it loads the initial data which works fine, drawing both the parent and the child rings.
But when I change the data only the parent is drawn and not the children.
I have created a treeview and bound the same data to it which works fine and draws the data as expected so its something wrong with the chart and not the data.
Thanks, Grant
I have attached a very simple example of the problem.
The data is fine on the initial call but once the item changes in the combo along the top it cannot find the children although they are present..