diff --git a/docs/docs/getting-started/v3-migration.md b/docs/docs/getting-started/v3-migration.md index 2fc9f141f..838f33629 100644 --- a/docs/docs/getting-started/v3-migration.md +++ b/docs/docs/getting-started/v3-migration.md @@ -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 diff --git a/src/core/core.defaults.js b/src/core/core.defaults.js index 74730c45e..61663fd18 100644 --- a/src/core/core.defaults.js +++ b/src/core/core.defaults.js @@ -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; }