Enable autoSkip for time scale to match others (#7570)

This commit is contained in:
Ben McCann 2020-07-06 06:35:16 -07:00 committed by GitHub
parent 87c59fea73
commit a33086bfc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -156,7 +156,8 @@ options: {
}
```
Also, the time scale option `distribution: 'series'` was removed and a new scale type `timeseries` was introduced in its place.
* The time scale option `distribution: 'series'` was removed and a new scale type `timeseries` was introduced in its place
* In the time scale, `autoSkip` is now enabled by default for consistency with the other scales
#### Animations

View File

@ -219,8 +219,6 @@ const defaultConfig = {
displayFormats: {}
},
ticks: {
autoSkip: false,
/**
* Ticks generation input values:
* - 'auto': generates "optimal" ticks based on scale size and time options.

View File

@ -88,7 +88,7 @@ describe('Time scale tests', function() {
padding: 0,
display: true,
callback: defaultConfig.ticks.callback, // make this nicer, then check explicitly below,
autoSkip: false,
autoSkip: true,
autoSkipPadding: 0,
labelOffset: 0,
minor: {},