Fixed problems with hbars graphs

This commit is contained in:
m-lopez-f 2016-10-24 16:10:41 +02:00
parent 3d45b3e9a9
commit aab6db3f65
1 changed files with 2 additions and 3 deletions

View File

@ -328,11 +328,10 @@ function pandoraFlotHBars(graph_id, values, labels, water_mark,
// the X axis show negative part instead to
// show the axis only the positive part.
if (maxvalue == 0) {
options['xaxes'][0]['min'] = 0;
options['yaxis']['min'] = 0;
// Fixed the values with a lot of decimals in the situation
// with all 0 values.
options['xaxes'][0]['tickDecimals'] = 0;
options['yaxis']['tickDecimals'] = 0;
}