3👍
✅
Copied your code to a Plunker, works just fine:
plunker: https://plnkr.co/edit/UGH3BKiWmgFqFWf78ZUE?p=preview
I think that adding the script this way will not work because angular would sanitize it. Try adding the script after the chart.js script on your page in <script>
or preferably in it’s own file.
Source:stackexchange.com