HTML: Fix the pressure axis if no pressure samples

When no pressure samples are available the y-axis on right side gets a
bogus legend, this must be fixed and the minimum value is set to zero,
as there is no negative pressure value.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Gehad elrobey 2014-07-18 23:04:14 +02:00 committed by Dirk Hohndel
parent bf68a2ece6
commit 7fabeda184

View file

@ -979,6 +979,7 @@ function canvas_draw()
pad : 2.05
},
y2axis : {
min : 0,
tickRenderer : $.jqplot.CanvasAxisTickRenderer,
tickOptions : {
formatString : '%ibar'