View Full Version : [CLOSED] How to change chart type at run time ?

Apr 15, 2013, 6:28 AM
Hi Ext.net Team ,

I saw the example of charts using Ext.net .

But I want to know , how can I change the chart type at runtime ?

Means first time on page load I create a pie chart using dataList ,Using same dataList I want to create a different chart when I select the chart type as line it should show the line chart or when I select the chart type as column it should show the column chart .

Please share any example for the same in Razor.


Apr 15, 2013, 8:00 AM
Hi @alscg,

Unfortunately, we have no example exactly for this scenario.

You can put a chart (-s) in a partial view (-s) and render it to a Container with a Loader.

Another approach is rendering a Chart during a common DirectEvent, similar to this example:

Just in MVC you will need to pass a container' id to a controller action instead of using the things like "this.Panel1".