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

creating chart using ChartModel at controller level

Hi Team,

I was going through ASP.NET MVC Classic tutorials

http://help.syncfusion.com/ug/asp.net%20mvc/index.html#!documents/chartmodel69.htm

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  

ASP.NET MVC 5 
Framework 4.5.1
Jquery
windows 8.1


thank you 
Regards,
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.


Screenshot:

We have made a sample for this. Please find the below sample link for downloading the sample.
Sample Link:
https://www.syncfusion.com/downloads/support/forum/120081/ze/ChartModel-1668448367
Kindly refer below online UG documentation link for more details of creating chart in Latest MVC.
https://help.syncfusion.com/aspnetmvc/getting-started
Please let us know if you have any concern.
Thanks,
Vinothkumar Arumugam.


Loader.
Up arrow icon