Hi,
I’ve managed to add data to chartjs when the x-axis type is set to category, as category seems to take any type of label no problem.
However, for the life of me I can’t get the chart to work when the x-axis type is set to time.
For example, I’d like to set the x-axis time span to 15 minutes (15 mins ago to now – left to right) and have a label (tick) at every minute (so 15 labels).
Does anyone have any actual chartjs examples using time as the x-axis they could kindly share, please?
Thank you
Hi Darren,
I use a lot of time axis in my charts, mainly for seconds (its a real-time dashboard).
My code is (roughly):
Please login first to submit.