0๐
โ
I solved my error editing the first script from this:
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.js" />
to this:
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.js" ></script>
as suggested by @j.ian.le
And adding
responsive: false,
under options: {
0๐
You should remove the ...
under backgroundColor
and borderColor
or add colors according to the number of labels.
0๐
You need to call myChart.update() after initializing the chart.
Source:stackexchange.com