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

Dynamically changing chart type at runtime

1 Answer 181 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Charlie
Top achievements
Rank 1
Charlie asked on 17 Mar 2011, 09:58 PM
This is more of a theoretical question. Let's say I have a report generated that contains some information and a pie chart. The user viewing the report decides they would rather view the information in a bar graph. Is there a way to change the pie chart into a bar graph (or any other chart type) dynamically in the report while the user is viewing it?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 22 Mar 2011, 11:15 AM
The chart has a DefaultType property that is public and allows you to do that. You should have in mind that not all chart types are exchangeable as different types have different purpose, thus the prepared data should be different as well as the specific chart configuration.

Cheers!
Tags
General Discussions
Asked by
Charlie
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Share this question
or