1👍
You’re using an old version of chart.js
Replace your script
tag with this and your sample works:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.js"></script>
I can’t get the SO snippets to work, but here’s a working fiddle: https://jsfiddle.net/xekp0mzz/
Source:stackexchange.com