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..
Hello Grant,
Thank you for your post.
I have been investigating the sample application that you have provided.
I have logged this behavior with our developers in our tracking system, with an issue ID of 190856. I have also created a support ticket on your behalf with number CAS-153052-J4D7V4 in order to link the development issue to it so that you are automatically updated when a Service Release containing your fix is available for download. Please note that due to our product lifecycle (you can read more details here: http://ko.infragistics.com/support/product-lifecycle), the issue will be investigated in version 14.1 and later.
While our development team is investigating this issue, I can suggest you to create variable that remains the items in the HandleSelectedItemChange function and after the items are added to the variable you can update the ChartData with it. I modified your sample application to show you how you can implement this approach.
Please let me know if you need any further assistance on the matter.
Hi,
That's great thanks, the temporary fix will work for now
All seems well now!Thanks, Grant
I am just checking your progress on the issue that you are having.
If you require any further assistance please do not hesitate to ask
We have shipped out a new service release where your issue is resolved. I'd be glad to find out if you had tested it out and if it had met your requirements.
You can download the Service Releases by logging to our web site and going to Account\My Keys and Downloads.