From: Gehad elrobey <[email protected]>

Remove negative sign from the inverted y-axis

Signed-off-by: Gehad elrobey <[email protected]>
Signed-off-by: Miika Turkia <[email protected]>
---
 theme/list_lib.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/theme/list_lib.js b/theme/list_lib.js
index 23906b4..718ea4c 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',
                                                },
                                         },
                                 }
-- 
1.9.1

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to