So I was trying out the Chart helpers in the System.Web.Helpers namespace.
according to http://www.asp.net/web-pages/tutorials/data/7-displaying-data-in-a-chart
Some header above a graph
public ActionResult DrawChart()
{
MyViewModel model = ...
return View(model);
}
!!! To send the Model parameter to DrawChart
Change to
Some header above a graph
public ActionResult DrawChart(MyViewModel _MyViewModel )
{
MyViewModel model = MyViewModel ;
return View(model);
}
MyViewModel is Null
Seek advice from those who know.