From b6d344421203edff4f8419fb5e9099affef718a1 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Mon, 6 Nov 2017 17:02:54 +0100 Subject: [PATCH] Fix PDF reports labels - #417 --- pandora_console/include/graphs/fgraph.php | 4 ++-- pandora_console/include/graphs/functions_pchart.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/graphs/fgraph.php b/pandora_console/include/graphs/fgraph.php index 74a2ea251d..18710affdd 100644 --- a/pandora_console/include/graphs/fgraph.php +++ b/pandora_console/include/graphs/fgraph.php @@ -192,12 +192,12 @@ function vbar_graph($flash_chart, $chart_data, $width, $height, } else { foreach ($chart_data as $key => $value) { - if(strlen($key) > 25){ + if(strlen($key) > 20){ if(strpos($key, ' - ') != -1){ $key_temp = explode(" - ",$key); $key_temp[0] = $key_temp[0]." \n"; - $key_temp[1]= '...'.substr($key_temp[1],-15); + $key_temp[1]= '...'.substr($key_temp[1],-10); $key2 = $key_temp[0].$key_temp[1]; io_safe_output($key2); } diff --git a/pandora_console/include/graphs/functions_pchart.php b/pandora_console/include/graphs/functions_pchart.php index a265f43ede..fcbd67f00a 100644 --- a/pandora_console/include/graphs/functions_pchart.php +++ b/pandora_console/include/graphs/functions_pchart.php @@ -737,7 +737,7 @@ function pch_bar_graph ($graph_type, $index, $data, $width, $height, $font, $margin_left = 40+50; $margin_right = 90; $margin_top = 10; - $margin_bottom = (3 * $max_chars)+40; + $margin_bottom = (3 * $max_chars)+80; break; case "hbar": $scaleSettings = array("GridR"=>1000,"GridG"=>1000,"GridB"=>1000,"DrawSubTicks"=>TRUE,