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

Change chart-type on runtime

1 Answer 58 Views
Chart
This is a migrated thread and some comments may be shown as answers.
T
Top achievements
Rank 1
T asked on 25 Aug 2011, 03:47 PM
Hi,

I'm kinda new here, so this one's a beginner's question :)
I want to be able to change the the type of my chart (from bar to pie etc.) at runtime (say, by selecting a new type from a drop-down).
I suppose it has to do with DataSeries.Definion, but it makes no sense to me since it's a dataSeries property and not a chart's property.
I've tried setting the chart's DefaultSeriesDefinition but that doesn't do the trick either.

How can it be done then?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 30 Aug 2011, 02:23 PM
Hello T,

You can review our Empty Values demo where it is demonstrated how you can switch between the SeriesDefinitions using the RadComboBox and its SelectionChanged event. Please note that the Chart is rebound each time the series definition is changed - RadChart1.Rebind();

Regards,
Evgenia
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Chart
Asked by
T
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or