From e3d9d3b6d39823f82215ea63d190ffedd83c734f Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 3 Nov 2011 17:42:43 +0000 Subject: [PATCH] 2011-11-03 Sergio Martin * 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 --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/graphs/functions_pchart.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ea0b128ef0..0f6a96fda1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2011-11-03 Sergio Martin + + * 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 * include/functions.php: added function "check_refererer" for check diff --git a/pandora_console/include/graphs/functions_pchart.php b/pandora_console/include/graphs/functions_pchart.php index b21c1be136..4b38a24e12 100755 --- a/pandora_console/include/graphs/functions_pchart.php +++ b/pandora_console/include/graphs/functions_pchart.php @@ -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 */