views:

858

answers:

3

I have seen Microsoft charting control @ here and here.

It has good demonstration for displaying bar chart in MVC.

On scottgu's blog There are plenty of examples but they are using server controls (i.e <asp:CHRT runat"server">. This is also supported in MVC by Modifying web.config.

but as we should avoid using server control as postback is not supported in MVC, we should render it as shown in "without code behind page" example.

Exactly like This Question.

Now I would like to know how other chart types (like pie chart) can be created in controller?

+4  A: 

I like google charts. Just write a HTMLHelper to render the correct URL.

http://code.google.com/apis/chart/

David Liddle
neat stuff. thanks. :)
Arnis L.
A: 

Try using 3rd party flash charting controls like amCharts. They can be configured via a simple XML file and get their data from static or generated XML or CSV files or streams.

Alan Mendelevich
This is a valid option and shouldn't be downvoted
Arnis L.
A: 

http://stackoverflow.com/questions/319835/new-asp-net-charting-controls-will-they-work-with-mvc-eventually

Something that was created quite a while ago, but is relevant to this topic.

Kezzer