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

* include/graphs/functions_pchart.php: Fixed bad 
	legend show condition



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4151 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-03-30 15:49:57 +00:00
parent d33b2f10d1
commit 926c4a1a3b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-03-30 Sergio Martin <sergio.martin@artica.es>
* include/graphs/functions_pchart.php: Fixed bad
legend show condition
2011-03-30 Javier Lanz <javier.lanz@artica.es>
* godmode/reporting/reporting_builder.item_editor.php: Removed the option
to select 'show graph' in general reports

View File

@ -322,7 +322,7 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height, $rgb_c
$scaleSettings = array("GridR"=>200,"GridG"=>200,"GridB"=>200,"DrawSubTicks"=>TRUE,"CycleBackground"=>TRUE, "Mode"=>SCALE_MODE_START0, "XMargin" => 40, "LabelRotation" => 90);
$myPicture->drawScale($scaleSettings);
if($show_legend) {
if(is_array($legend) && !empty($legend)) {
/* Write the chart legend */
$myPicture->drawLegend($height/2,$width/1.8,array("Style"=>LEGEND_NOBORDER,"Mode"=>LEGEND_HORIZONTAL));
}