Added titles to api graphs
This commit is contained in:
parent
95378f8c9f
commit
eb3550252c
|
@ -858,7 +858,7 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
|
|||
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'],
|
||||
$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,
|
||||
|
@ -867,7 +867,7 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
|
|||
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'],
|
||||
$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,
|
||||
|
@ -879,7 +879,7 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
|
|||
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'],
|
||||
$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,
|
||||
|
|
|
@ -765,7 +765,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