Commit e4670ae1 authored by Mathieu Giraud's avatar Mathieu Giraud

axis.js: no more than 30 labels on an axis

parent d47b12f7
...@@ -217,8 +217,7 @@ Axis.prototype = { ...@@ -217,8 +217,7 @@ Axis.prototype = {
this.labels = []; this.labels = [];
var length = Object.keys(tab).length; var length = Object.keys(tab).length;
var step = 1; var step = 1 + Math.floor(length / 30)
if (length>50) step = 5
var i=1 var i=1
for (var e in tab){ for (var e in tab){
......
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