[#340] Value of 30 in comment contradicts actual value in code (15)

This commit is contained in:
John Glover 2013-04-15 17:10:41 +02:00
parent 4d6aa91ef3
commit c4bdca79ad

View File

@ -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;