This is a migrated thread and some comments may be shown as answers.

Change definition programmatically?

1 Answer 66 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Enill
Top achievements
Rank 1
Enill asked on 16 Apr 2010, 04:48 PM
Hi,
is it possible to change the definition of a chart programmatically?

I tried to change the definition from button a with:
---
histo.DefaultView.ChartArea.DataSeries[0].Definition = new Pie3DSeriesDefinition();
LayoutRoot.Visibility = Visibility.Visible; // Trying to force a refresh
---

But it doesnt seem to work.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 21 Apr 2010, 02:21 PM
Hi Enill,

Thank you for reporting the issue, we will investigate it locally.
In the mean time, as a work-around, I would suggest the following workaround: remove the series from the DataSeries collection, change the definition, then add it back to the collection.

You have been awarded Telerik points for providing that information.

Best,
Joshua
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
Enill
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or