diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-07-18 23:04:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-25 07:14:26 -0700 |
commit | 7fabeda18482ad7069cfe5c9794454ab478f395c (patch) | |
tree | 859d1a8b937848651edc57240beee97d85bad42f | |
parent | bf68a2ece667504e656df15ac333e911961d5f4d (diff) | |
download | subsurface-7fabeda18482ad7069cfe5c9794454ab478f395c.tar.gz |
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>
-rw-r--r-- | theme/list_lib.js | 1 |
1 files changed, 1 insertions, 0 deletions
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' |