I use Jpgraph 4.2.2 and I try to display a variable(Y) in regard to the date/time(X).
I'd like to add a vertical line every time that the date changes (only date, not time). To teste,I have just created 2 arrays, one with dates and one with values. as following
$dates = array("2024-04-17 12:00", "2024-04-17 18:00", "2024-04-17 03:00", "2024-04-18 15:00", "2024-04-19 06:00");
I am waiting that a vertical line appear between 2024-04-17 03:00 and 2024-04-18 15:00
When I create the xaxis, with the lines :
$xaxis = new DateScale();
$xaxis->SetDateFormat('d/m/Y H:i'); // Définir le format de date pour les étiquettes d'axe
$xaxis->SetLabelAngle(90); // Définir l'angle des étiquettes d'axe
I get an error on the 3rd line:
Fatal error: Uncaught Error: Class 'DateScale' not found in /var/www/html/WEB/jpgraph-4.4.2/src/jpgraph.php:1103
Stack trace:
#0 /var/www/html/WEB/BBB/test.php(27): Graph->SetScale()
#1 {main}
thrown in /var/www/html/WEB/jpgraph-4.4.2/src/jpgraph.php on line 1103
Anybody could help me ?