From 98d9032034d20cb2ad0d1788069dfe8b687b7c13 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 14 May 2015 16:21:04 +0200 Subject: [PATCH] Some fixed for the enterprise PDF reports. --- .../include/functions_reporting.php | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 18091c6495..7f22d2f4fa 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -1114,17 +1114,33 @@ function reporting_event_top_n($report, $content, $type = 'dinamic', $return['charts']['pie'] = pie3d_graph(false, $data_pie_graph, - $width, $height, __("other"), + $width, $height, + __("other"), ui_get_full_url(false, true, false, false) . '/', ui_get_full_url(false, false, false, false) . "/images/logo_vertical_water.png", - $config['fontpath'], $config['font_size']); + $config['fontpath'], + $config['font_size'], + $ttl); //Display bars graph $return['charts']['bars'] = hbar_graph( - false, $data_hbar, $width, - $height, array(), array(), "", "", true, - ui_get_full_url(false, true, false, false) . '/', $config['homedir'] . "/images/logo_vertical_water.png", $config['fontpath'], $config['font_size'], true, 1, true); + false, + $data_hbar, + $width, + count($data_hbar) * 50, + array(), + array(), + "", + "", + true, + ui_get_full_url(false, true, false, false) . '/', + $config['homedir'] . "/images/logo_vertical_water.png", + $config['fontpath'], + $config['font_size'], + true, + $ttl, + true); } $return['resume'] = null;