Modif le nombre de ligne automatiquement

This commit is contained in:
Rodolphe Quiedeville 2003-11-25 10:22:44 +00:00
parent 9ffa926bc8
commit a30726216f

View File

@ -62,7 +62,21 @@ class BarGraph extends Graph
{ {
$this->prepare($file, $data, $title); $this->prepare($file, $data, $title);
//Draw it if (substr($this->MaxValue,0,1) == 1)
{
$this->graph->SetNumVertTicks(10);
}
elseif (substr($this->MaxValue,0,1) == 2)
{
$this->graph->SetNumVertTicks(4);
}
else
{
$this->graph->SetNumVertTicks(substr($this->MaxValue,0,1));
}
$this->graph->DrawGraph(); $this->graph->DrawGraph();
} }
} }