mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed problems with hbars graphs
(cherry picked from commit aab6db3f65096585f3750018b6f0a308df9bab03)
This commit is contained in:
parent
8e13818105
commit
b616e8a21c
@ -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…
x
Reference in New Issue
Block a user