3๐
I was facing a similar issue wherein the chart.js documentation was not helpful. Then I noticed that the chart.min.js version should be the latest one. This day we use 2.5+ and the documentation is for that version.
So try replacing the file, and reloading your page (conforming to documents of chart.min.js 2.5+)
0๐
How you created your context? It should be
var ctx = document.getElementById("myChart");
- [Chartjs]-Change Radius/Point size of Legend Points in chart.js when usePointStyle is true
- [Chartjs]-Chart.js pie chart issue with display: none
Source:stackexchange.com