I have to develop an ASP.NET MVC3 application in C# and Razor that has to gather data from a database, elaborate them and, according to the user’s preference, display a graph based on user’s preferences.
For instance the user might want daily figures or monthly, he wants it in a histogram rather than a cake graph.
I was wondering how can draw a graph in ASP.NET and even decide which kind of graph, etc. I guess they haven’t created helpers for these tasks yet.
You have a couple of options:
1. Create your own charting control
Start from scratch or build upon MVC 3’s ChartHelper web helper to build your own charts.
2. Use an ‘off the shelf’ component
Telerik make a great set of controls for ASP.NET MVC, including a chart. Take a look at their demonstrations to see if it fits your needs.