Compare commits

...

1 Commits

Author SHA1 Message Date
Gion Kunz
92e1adca01 WIP testing new ticks option 2016-06-30 17:19:31 +02:00

View File

@ -32,10 +32,19 @@
max: this.bounds.max
};
var ticks = this.bounds.values;
if (options.ticks) {
ticks = ticks.concat(options.ticks).filter(function(value, index, self) {
return self.indexOf(value) === index;
}).sort(function(a, b) {
return a - b;
});
}
Chartist.AutoScaleAxis.super.constructor.call(this,
axisUnit,
chartRect,
this.bounds.values,
ticks,
options);
}