Commit 0f483fa2 authored by Mathieu Giraud's avatar Mathieu Giraud

js/generic_axis.js: more precise rounding

parent e2a0e07d
...@@ -125,7 +125,7 @@ GenericAxis.prototype = { ...@@ -125,7 +125,7 @@ GenericAxis.prototype = {
var convert = this.applyConverter(value); var convert = this.applyConverter(value);
if (typeof round !== 'undefined') if (typeof round !== 'undefined')
convert = nice_ceil(convert, round) convert = nice_ceil(convert - round/2, round)
if (typeof convert == "undefined" || convert == undefined || convert == "undefined") { if (typeof convert == "undefined" || convert == undefined || convert == "undefined") {
if (this.can_undefined) { if (this.can_undefined) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment