X-Axis label does not appear on chart.js

๐Ÿ‘:0

You have the correct code and implementation but the data that is being fed to the chart is not enough to render the x-axis labels. For ex. the labels below fall on the same day and the Unit Step Size is 1 Day. So by default, the chart does not render the same day label for 2 data points.

"labels": [
  "2020-02-27 12:00:25",
  "2020-02-27 15:00:27"
]

You can see the working fiddle here

Leave a comment