[Chartjs]-How to use 'time' (data from database, data type: timestamp ) for plotting graph in Chart JS

4👍

The label must be a string. Build up $timeIntervals this way…

$timeIntervals = $timeIntervals . '"' . $timeInterval . '",';

…in order to have the date-time values wrapped between double quotes.

Leave a comment