Compare commits
1 Commits
master
...
test-auto-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
92e1adca01 |
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user