Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 62babf83 authored by marc duez's avatar marc duez
Browse files

axis.js : add min_step otion

parent 515f3cb1
......@@ -103,6 +103,7 @@ Axis.prototype = {
this.fct = json.fct
this.color = json.color
this.sort = json.sort
this.min_step = json.min_step
this.germline = "multi"
if ('germline' in json)
......@@ -230,7 +231,8 @@ Axis.prototype = {
var delta = this.scale.max - this.scale.min
var nice = nice_min_max_steps(this.scale.min, this.scale.max, max)
this.step = nice.step
if (typeof this.min_step == "undefined") this.min_step = nice.step
this.step = Math.max(nice.step, this.min_step)
this.precision = nice_number_digits(this.step, 1)
this.scale.nice_min = nice.min
......
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