Reputation: 24322
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?
Upvotes: 3
Views: 4930
Reputation: 18220
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.
Upvotes: 0
Reputation: 3611
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.
Upvotes: 1
Reputation: 15350
I like google charts. Just write a HTMLHelper to render the correct URL.
http://code.google.com/apis/chart/
Upvotes: 5