2013-02-13 Sergio Martin <sergio.martin@artica.es>
* include/graphs/functions_flot.php include/graphs/flot/pandora.flot.js operation/agentes/stat_win.php: Improve the legend of the interactive graphs for bug 3573814 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7640 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d34059d6cd
commit
69aef3596b
|
@ -1,3 +1,10 @@
|
|||
2013-02-13 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/graphs/functions_flot.php
|
||||
include/graphs/flot/pandora.flot.js
|
||||
operation/agentes/stat_win.php: Improve the legend of the
|
||||
interactive graphs for bug 3573814
|
||||
|
||||
2013-02-13 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/styles/dialog.css
|
||||
|
|
|
@ -788,7 +788,8 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend, colors,
|
|||
|
||||
var label_aux = series.label + ' = ';
|
||||
|
||||
if (serie_types[i] != 'points') {
|
||||
// The graphs of points type and unknown graphs will dont be updated
|
||||
if (serie_types[i] != 'points' && series.label != $('#hidden-unknown_text').val()) {
|
||||
legends.eq(i).text(label_aux.replace(/=.*/, '= ' + parseFloat(y).toFixed(2) +' '+unit));
|
||||
}
|
||||
|
||||
|
|
|
@ -296,6 +296,9 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend, $long_in
|
|||
$force_integer = 'false';
|
||||
}
|
||||
|
||||
// Trick to get translated string from javascript
|
||||
$return .= html_print_input_hidden('unknown_text', __('Unknown'), true);
|
||||
|
||||
// Javascript code
|
||||
$return .= "<script type='text/javascript'>";
|
||||
$return .= "//<![CDATA[\n";
|
||||
|
|
|
@ -228,6 +228,8 @@ $label = base64_decode(get_parameter('label', ''));
|
|||
|
||||
$urlImage = ui_get_full_url(false);
|
||||
|
||||
$unit = db_get_value('unit', 'tagente_modulo', 'id_agente_modulo', $id);
|
||||
|
||||
// log4x doesnt support flash yet
|
||||
//
|
||||
if ($config['flash_charts'] == 1)
|
||||
|
@ -237,7 +239,7 @@ $label = base64_decode(get_parameter('label', ''));
|
|||
switch ($graph_type) {
|
||||
case 'boolean':
|
||||
echo grafico_modulo_boolean ($id, $period, $draw_events, $width, $height,
|
||||
$label, null, $draw_alerts, $avg_only, false, $date, false, $urlImage, 'adapter_'.$graph_type, $time_compare, $unknown_graph);
|
||||
$label, $unit, $draw_alerts, $avg_only, false, $date, false, $urlImage, 'adapter_'.$graph_type, $time_compare, $unknown_graph);
|
||||
echo '<br>';
|
||||
if ($show_events_graph)
|
||||
echo graphic_module_events($id, $width, $height,
|
||||
|
@ -245,7 +247,7 @@ $label = base64_decode(get_parameter('label', ''));
|
|||
break;
|
||||
case 'sparse':
|
||||
echo grafico_modulo_sparse ($id, $period, $draw_events, $width, $height,
|
||||
$label, null, $draw_alerts, $avg_only, false, $date, '', $baseline,
|
||||
$label, null, $draw_alerts, $avg_only, false, $date, $unit, $baseline,
|
||||
0, true, false, $urlImage, 1, false, 'adapter_'.$graph_type, $time_compare, $unknown_graph);
|
||||
echo '<br>';
|
||||
if ($show_events_graph)
|
||||
|
|
Loading…
Reference in New Issue