mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
[Console > Module area graph] Now the value shown into the legend has 2 decimals instead of 1
This commit is contained in:
parent
b431f4afd3
commit
b26c46a7c6
@ -1781,7 +1781,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
|||||||
// The graphs of points type and unknown graphs will dont be updated
|
// The graphs of points type and unknown graphs will dont be updated
|
||||||
if (serie_types[i] != 'points' && series.label != $('#hidden-unknown_text').val()) {
|
if (serie_types[i] != 'points' && series.label != $('#hidden-unknown_text').val()) {
|
||||||
$('#legend_' + graph_id + ' .legendLabel')
|
$('#legend_' + graph_id + ' .legendLabel')
|
||||||
.eq(i).html(label_aux + '= ' + parseFloat(y).toFixed(precision_graph) + how_bigger + ' ' + unit);
|
.eq(i).html(label_aux + '= ' + parseFloat(y).toFixed(2) + how_bigger + ' ' + unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#legend_' + graph_id + ' .legendLabel')
|
$('#legend_' + graph_id + ' .legendLabel')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user