Fixed problems with hbars graphs
This commit is contained in:
parent
3d45b3e9a9
commit
aab6db3f65
|
@ -328,11 +328,10 @@ function pandoraFlotHBars(graph_id, values, labels, water_mark,
|
||||||
// the X axis show negative part instead to
|
// the X axis show negative part instead to
|
||||||
// show the axis only the positive part.
|
// show the axis only the positive part.
|
||||||
if (maxvalue == 0) {
|
if (maxvalue == 0) {
|
||||||
options['xaxes'][0]['min'] = 0;
|
options['yaxis']['min'] = 0;
|
||||||
|
|
||||||
// Fixed the values with a lot of decimals in the situation
|
// Fixed the values with a lot of decimals in the situation
|
||||||
// with all 0 values.
|
// with all 0 values.
|
||||||
options['xaxes'][0]['tickDecimals'] = 0;
|
options['yaxis']['tickDecimals'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue