mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Leftover defaults (#7628)
* Remove leftover placeholders from defaults * Add migration note about moved plugin defaults
This commit is contained in:
parent
c51af9f13e
commit
d3eaf2ff2a
@ -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
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user