We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

creating chart using ChartModel at controller level

Hi Team,

I was going through ASP.NET MVC Classic tutorials


where User can be able to create a chart with the help of chart model at controller level

Now When I want it to create at my project it is not allowing me  to do so. MVCChartModel is not present. can you please suggest something to go ahead with this. I want to generate chart at controller level so I will have better control on my code.
I tried with adding some namespaces and libraries. but not getting it worked.

I am using  

Framework 4.5.1
windows 8.1

thank you 
Ameya Deshpande

1 Reply

VA Vinothkumar Arumugam Syncfusion Team August 31, 2015 10:19 AM UTC

Hi Ameya,
We have analyzed your query and found that you are referring MVC classic controls UG document. This is not using for latest MVC controls. If you want to create chart model in Latest MVC  please find the following procedure.
Code Example:

·         Referring below namespace for ChartModel Creation

·         Creating chart instance and series as below.

·         Add DataSource for series as below

·         Add series model to ChartModel as below

·         In View page you can access MVCChart model as below.


We have made a sample for this. Please find the below sample link for downloading the sample.
Sample Link:
Kindly refer below online UG documentation link for more details of creating chart in Latest MVC.
Please let us know if you have any concern.
Vinothkumar Arumugam.

Live Chat Icon For mobile
Up arrow icon