Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create graphs in ASP.NET MVC3? [closed]

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.

like image 364
CiccioMiami Avatar asked Feb 03 '12 13:02

CiccioMiami


People also ask

Which namespace is used to create a chart using ASP NET MVC?

Chart class, which combines the namespace ( System. Web. Helpers ) with the class name ( Chart ).


1 Answers

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.

like image 192
Nick Avatar answered Sep 28 '22 05:09

Nick