Commit 814cc6d0 authored by Mathieu Giraud's avatar Mathieu Giraud

generic_axis.js: no more than 18 labels on the x-axis of a bar plot

Better spaced in the general case, and should prevent clashes until a 1280x resolution.
See #2697 and e4670ae1.
parent da97d2b9
...@@ -35,7 +35,7 @@ function GenericAxis (reverse, can_undefined) { ...@@ -35,7 +35,7 @@ function GenericAxis (reverse, can_undefined) {
this.value_mapping = {}; this.value_mapping = {};
this.can_undefined = true; this.can_undefined = true;
this.NB_STEPS_IN_AXIS = 6; // Number (max) of labels per numerical axis this.NB_STEPS_IN_AXIS = 6; // Number (max) of labels per numerical axis
this.NB_STEPS_BAR = 30; // Number (max) of labels per numerical axis in histograms this.NB_STEPS_BAR = 18; // Number (max) of labels per numerical axis in histograms
if(typeof can_undefined !== "undefined") if(typeof can_undefined !== "undefined")
this.can_undefined = can_undefined; this.can_undefined = can_undefined;
this.reverse = false; this.reverse = false;
......
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