[Chartjs]-Using Chart.js with Dates as x-Axis labels

2👍

You should include the Chart.js bundle instead, which contains the Moment.js library (required for formatting date and time) like this:

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js"></script>

Check out the docs here: https://www.chartjs.org/docs/latest/getting-started/installation.html#bundled-build

Leave a comment