Added show api graph title
This commit is contained in:
parent
6a411bb686
commit
1c14912706
|
@ -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).
|
||||
'<br>'.
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue