[Chartjs]-ChartJS keeps adding one day to X axis. I cannot find a reason. Any suggestion?

1👍

I managed to solve it by setting the max value for the time scale :

scales: {
    xAxes: [{
        type: 'time',
        time: {
            unit: 'day',
            max: <THE REAL LAST DAY DATE>
        }
    }]
}

Leave a comment