Added show api graph title

This commit is contained in:
fbsanchez 2015-11-11 11:17:45 +01:00
parent 6a411bb686
commit 1c14912706
2 changed files with 4 additions and 4 deletions

View File

@ -821,13 +821,13 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
if ($compare === 'separated') { if ($compare === 'separated') {
return area_graph($flash_chart, $chart, $width, $height/2, $color, $legend, 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), $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_type, $chart_extra_data, $warning_min, $critical_min, $adapt_key, false,
$series_suffix_str, $menu, $backgroundColor). $series_suffix_str, $menu, $backgroundColor).
'<br>'. '<br>'.
area_graph($flash_chart, $chart_prev, $width, $height/2, $color_prev, $legend_prev, 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), $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_type_prev, $chart_extra_data, $warning_min, $critical_min, $adapt_key, false,
$series_suffix_str, $menu, $backgroundColor); $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, return area_graph($flash_chart, $chart, $width, $height, $color, $legend,
$long_index, ui_get_full_url("images/image_problem.opaque.png", false, false, false), $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_type, $chart_extra_data, $warning_min, $critical_min, $adapt_key, false,
$series_suffix_str, $menu, $backgroundColor); $series_suffix_str, $menu, $backgroundColor);
} }

View File

@ -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 //Calculate the bottom margin from the size of string in each index
$max_chars = graph_get_max_index($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_height = 0;
$water_mark_width = 0; $water_mark_width = 0;