[#340] Value of 30 in comment contradicts actual value in code (15)
This commit is contained in:
parent
4d6aa91ef3
commit
c4bdca79ad
@ -208,7 +208,7 @@ my.Flot = Backbone.View.extend({
|
||||
|
||||
// for labels case we only want ticks at the label intervals
|
||||
// HACK: however we also get this case with Date fields. In that case we
|
||||
// could have a lot of values and so we limit to max 30 (we assume)
|
||||
// could have a lot of values and so we limit to max 15 (we assume)
|
||||
if (this.xvaluesAreIndex) {
|
||||
var numTicks = Math.min(this.model.records.length, 15);
|
||||
var increment = this.model.records.length / numTicks;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user