0👍
✅
The code you shared worked for me. Make sure that you’ve included Moment and the non-bundled version of Chart.js in your project. E.g.:
<script src="https://cdn.jsdelivr.net/npm/moment@2.24.0"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
Also, check your browser’s developer console to see if there are any JavaScript errors that can help give more clues as to the problem. You can access in Chrome by hitting F12.
Source:stackexchange.com