From 7fabeda18482ad7069cfe5c9794454ab478f395c Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Fri, 18 Jul 2014 23:04:14 +0200 Subject: 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 Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- theme/list_lib.js | 1 + 1 file changed, 1 insertion(+) (limited to 'theme') diff --git a/theme/list_lib.js b/theme/list_lib.js index f40151887..1d0cd9076 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -979,6 +979,7 @@ function canvas_draw() pad : 2.05 }, y2axis : { + min : 0, tickRenderer : $.jqplot.CanvasAxisTickRenderer, tickOptions : { formatString : '%ibar' -- cgit v1.2.3-70-g09d2