Home › forums › Using CanvasJS › Multiple canvasjs charts in MVC partial views › Reply To: Multiple canvasjs charts in MVC partial views
First, dont include canvas.js script every time. Then, you need unique id for div
<div >>>> id=”chart” <<< style=”height: 300px; width: 100%;”></div>
I have created wrapped for canvas.js model by generating random guid from which I set my id to div and then I am using the same id in script to generate canvas.js chart.