Commit 73cd7092 authored by Mathieu Giraud's avatar Mathieu Giraud

js/numerical_axis.js: fix

See #2731.
parent 2ff69a13
Pipeline #11021 canceled with stages
......@@ -279,7 +279,7 @@ function FloatAxis (model, reverse, can_undefined) {
FloatAxis.prototype = Object.create(NumericalAxis.prototype);
FloatAxis.prototype.getLabelText = function(value) {
return parseFloat(value).toFixed( nice_number_digits(this.min, this.max, 2) )
return parseFloat(value).toFixed(nice_number_digits(this.max - this.min, 2))
}
FloatAxis.prototype.insert_values = function() {
......
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