Chartjs-Incorrect time chart Chart.js

2👍

Time series was not in correct order. Since it is a time chart, labels should be in either ascending or descending order.

changing the time to the below order fixed the issue

  data: {
        labels: [
        "2018-12-04 00:00:14.000000"
        "2018-12-05 11:45:14.000000",
        "2018-12-05 12:00:14.000000",
        "2018-12-05 13:00:15.000000",
        "2018-12-05 14:00:14.000000",
        ],

Leave a comment