Fixed visual error in graphs. Ticket #2578

This commit is contained in:
Arturo Gonzalez Diaz 2015-08-24 14:10:41 +02:00
parent 596a20b19d
commit d096406641
1 changed files with 1 additions and 2 deletions

View File

@ -691,11 +691,10 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height,
}
//$MyData->addPoints($data,"Yaxis");
$MyData->setAxisName(0,$yaxisname);
$MyData->setAxisName(0,$unit);
$MyData->addPoints($index,"Xaxis");
$MyData->setSerieDescription("Xaxis", $xaxisname);
$MyData->setAbscissa("Xaxis");
$MyData->setAxisUnit(0, $unit);
$MyData->setAxisDisplay(0, AXIS_FORMAT_METRIC);
switch($backgroundColor) {