1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
// Create the new graph
$graph = new Graph(800,700,"auto");
// Slightly larger than normal margins at the bottom to have room for
// the x-axis labels
$graph->SetMargin(40,40,30,130);
// Fix the Y-scale to go between [0,100] and use date for the x-axis
$graph->SetScale("datlin",0,10);
$graph->title->Set("Example on Date scale");
// Set the angle for the labels to 90 degrees
$graph->xaxis->SetLabelAngle(0);
$graph->xaxis->scale->SetDateFormat( 'i:s' );
$lineplot = new LinePlot($Tmp_Km_Min,$Annee);
$lineplot->SetLegend("Année");
$lineplot->SetFillColor('lightblue@0.5');
$graph->Add($lineplot); |
Partager