Using ASP.NET Charts in MVC

okidokipdl

New Member
I am able to build charts in MVC like below however the problem is I can't add colors, and do a lot of the fancy things that can be done in the ASP.NET chart control. Is there a way to do that with this Chart type or an alternative to doing this in MVC.\[code\]public ActionResult GetRainfallChart(){ var key = new Chart(width: 600, height: 400) .AddSeries( chartType: "bar", xValue: new[] { "Jan", "Feb", "Mar", "Apr", "May" }, yValues: new[] { "40", "10", "20", "20", "10" }) .AddTitle("Title") .Write(); return null;}\[/code\]
 
Back
Top