aboutsummaryrefslogtreecommitdiffstats
path: root/theme/list_lib.js
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2014-07-04 14:37:12 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-04 06:36:24 -0700
commit89f86a57452df500abec050cbc8599e4bc908d2a (patch)
tree6a114050cf0fd9626a5732626e21186e3bbf4f68 /theme/list_lib.js
parentf46463ac53b0dcde663ade9b6dae6c12144649a3 (diff)
downloadsubsurface-89f86a57452df500abec050cbc8599e4bc908d2a.tar.gz
HTML: depth value must be positive
Remove negative sign from the inverted y-axis 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>
Diffstat (limited to 'theme/list_lib.js')
-rw-r--r--theme/list_lib.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js
index 23906b480..718ea4cc7 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -800,7 +800,6 @@ function canvas_draw()
}
}
for (var i = 0; i < items[dive_id].events.length; i++) {
- //var x = get_sample(items[dive_id].events[i].time);
d3.push([
items[dive_id].events[i].time / 60,
0,
@@ -875,7 +874,8 @@ function canvas_draw()
max : 0,
tickRenderer : $.jqplot.CanvasAxisTickRenderer,
tickOptions : {
- formatString : '%.2f'
+ formatter: function(format, value) { return -1 * value + "m"; },
+ formatString : '%.2fm'
},
pad : 2.05
},
@@ -893,6 +893,7 @@ function canvas_draw()
showMark: false,
showLabel: false,
shadow: false,
+ formatString : '%i C',
},
},
}