When I use the dates associated with my data for the labels, the dates are interpreted by the chart as numbers and performs math…so for example if I am showing a month followed by day as 10-14, the date is returned and displayed as a label of -4
Here are some screen shots of the charts as they are drawn
On the left side the “Dates List” are the dates used as labels in the chart on the Vertical Axes. The “Dates List” is actually coming from a custom state I created as a list of texts and I send the information through by formatting the dates like below
I then looked at the Chart.js documentation concerning time
and attempted to implement the axes time type but that causes the chart to not be drawn, and oddly enough it does not cause an error message in the debugger.
This does not produce an error message in the debugger so it seems the code is fine, however the chart does not get drawn.
Does anybody have experience with Chart.js and have used dates as labels? I have spent hours trying to find a solution to this with no luck.