From 1c14912706f4e501acd1b8e33886972380f400ca Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Wed, 11 Nov 2015 11:17:45 +0100 Subject: [PATCH] Added show api graph title --- pandora_console/include/functions_graph.php | 6 +++--- pandora_console/include/graphs/functions_pchart.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index e2b7123399..8196b3dd51 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -821,13 +821,13 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events, if ($compare === 'separated') { return area_graph($flash_chart, $chart, $width, $height/2, $color, $legend, $long_index, ui_get_full_url("images/image_problem.opaque.png", false, false, false), - "", $unit, $homeurl, $water_mark, $config['fontpath'], $config['font_size'], $unit, $ttl, + $title, $unit, $homeurl, $water_mark, $config['fontpath'], $config['font_size'], $unit, $ttl, $series_type, $chart_extra_data, $warning_min, $critical_min, $adapt_key, false, $series_suffix_str, $menu, $backgroundColor). '
'. area_graph($flash_chart, $chart_prev, $width, $height/2, $color_prev, $legend_prev, $long_index_prev, ui_get_full_url("images/image_problem.opaque.png", false, false, false), - "", $unit, $homeurl, $water_mark, $config['fontpath'], $config['font_size'], $unit, $ttl, + $title, $unit, $homeurl, $water_mark, $config['fontpath'], $config['font_size'], $unit, $ttl, $series_type_prev, $chart_extra_data, $warning_min, $critical_min, $adapt_key, false, $series_suffix_str, $menu, $backgroundColor); } @@ -836,7 +836,7 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events, return area_graph($flash_chart, $chart, $width, $height, $color, $legend, $long_index, ui_get_full_url("images/image_problem.opaque.png", false, false, false), - "", $unit, $homeurl, $water_mark, $config['fontpath'], $config['font_size'], $unit, $ttl, + $title, $unit, $homeurl, $water_mark, $config['fontpath'], $config['font_size'], $unit, $ttl, $series_type, $chart_extra_data, $warning_min, $critical_min, $adapt_key, false, $series_suffix_str, $menu, $backgroundColor); } diff --git a/pandora_console/include/graphs/functions_pchart.php b/pandora_console/include/graphs/functions_pchart.php index 005a9e262d..b6c8885fcf 100755 --- a/pandora_console/include/graphs/functions_pchart.php +++ b/pandora_console/include/graphs/functions_pchart.php @@ -768,7 +768,7 @@ function pch_vertical_graph ($graph_type, $index, $data, $width, $height, //Calculate the bottom margin from the size of string in each index $max_chars = graph_get_max_index($index); - $margin_bottom = $font_size * $max_chars; + $margin_bottom = $font_size * $max_chars + 20; // added 20 px to show xaxisname $water_mark_height = 0; $water_mark_width = 0;