2๐
โ
So in order to reference the canvas, I appended the forloop index to the canvas id:
<canvas id="myChart{{ forloop.counter0 }}" width="600" height="400">
And then to reference the canvas within the chart.js context:
var ctx = document.getElementById("myChart" + {{ forloop.counter0 }}).getContext('2d');
0๐
A way for showing multiple charts in one canvas is using Mixed Chart.
more info :
Source:stackexchange.com