Chartjs-Time scale with single object – bar isn't centered (chart.js)

0👍

Maybe a poor workaround, but adding an empty datapoint {} after the existing datapoint seems to be doing the trick…

    data: [
    {
      x: new Date('2019-01-09T00:00:00+03:00'),
      y: 10,
    },
    {}
    ],

Leave a comment