2011-11-03 Sergio Martin <sergio.martin@artica.es>

* include/graphs/functions_pchart.php: Fixed graphs to adapt bottom 
	margin with the font size and show the graphs properly when are
	so little



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-11-03 17:42:43 +00:00
parent 1b86946aa5
commit e3d9d3b6d3
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2011-11-03 Sergio Martin <sergio.martin@artica.es>
* include/graphs/functions_pchart.php: Fixed graphs to adapt bottom
margin with the font size and show the graphs properly when are
so little
2011-11-02 Miguel de Dios <miguel.dedios@artica.es>
* include/functions.php: added function "check_refererer" for check

View File

@ -714,7 +714,7 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height,
$max_chars = $len;
}
}
$margin_bottom = 10 * $max_chars;
$margin_bottom = $font_size * $max_chars;
$water_mark_height = 0;
$water_mark_width = 0;
@ -742,7 +742,7 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height,
"GridG"=>200,
"GridB"=>200,
"DrawSubTicks"=>TRUE,
"CycleBackground"=>TRUE, "Mode"=>SCALE_MODE_START0, "LabelRotation" => 60, "XMargin" => 0);
"CycleBackground"=>TRUE, "Mode"=>SCALE_MODE_START0, "LabelRotation" => 60, "XMargin" => 0, "MinDivHeight" => 20);
$myPicture->drawScale($scaleSettings);
/* Turn on shadow computing */