[Chartjs]-Django: Pass a list of dates to JavaScript in template for Chart.js

2👍

I think you might have the same problem as me. Try removing

scales: {
    xAxes: [{
        type: 'time'
    }]
}

from options. I’m having it where my chart won’t render if I include the scales option. If I leave it out, the chart renders, but the dates are the fully-formatted date and time. This is my post for comparison.

Leave a comment