Home › forums › Using CanvasJS › Multiple canvasjs charts in MVC partial views
This topic contains 3 replies, has 2 voices, and was last updated by Bivek Singh 11 months, 1 week ago.
I need to show 6-7 charts located in different MVC partial views.
Each pair of charts is located on a separate partial view
I changed one partial view to call the Document ready event which worked, however I need to show 2 more charts.
Can you suggest a method to overcome this limitation whilst keeping the chart html and js located withing the partial view.
Please check the container IDs. ID should be different for every container. We would need a sample code in order to properly understand the problem and resolve it.
Hi, yes the container Ids are unique.
The issue I suspect is because I am running multiple script tags each with Window.Onload.
It seems the last Window.onload block is taking prescidence
Could you please share your sample application code so that we can understand the issue properly and assist you in a much better way.
You must be logged in to reply to this topic.
ASP.NET MVC Charts
ContactSales EnquiriesSupport ForumTwitter Support Handle