Leftover defaults (#7628)

* Remove leftover placeholders from defaults
* Add migration note about moved plugin defaults
This commit is contained in:
Jukka Kurkela 2020-07-16 01:13:10 +03:00 committed by GitHub
parent c51af9f13e
commit d3eaf2ff2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -102,6 +102,7 @@ A number of changes were made to the configuration options passed to the `Chart`
* `defaultFontStyle` was renamed to `font.style`
* `defaultLineHeight` was renamed to `font.lineHeight`
* Horizontal Bar default tooltip mode was changed from `'index'` to `'nearest'` to match vertical bar charts
* `legend`, `title` and `tooltip` namespaces were moved from `Chart.defaults` to `Chart.defaults.plugins`.
#### Scales

View File

@ -53,11 +53,7 @@ export class Defaults {
this.showLines = true;
this.plugins = {};
this.scale = undefined;
this.legend = undefined;
this.title = undefined;
this.tooltips = undefined;
this.doughnut = undefined;
this._routes = {};
this.scales = {};
this.controllers = undefined;
}