From: Jukka Kurkela Date: Wed, 15 Jul 2020 22:13:10 +0000 (+0300) Subject: Leftover defaults (#7628) X-Git-Tag: v3.0.0-beta.2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d3eaf2ff2a254b77034d995549e9ed4ce7d4b91a;p=thirdparty%2FChart.js.git Leftover defaults (#7628) * Remove leftover placeholders from defaults * Add migration note about moved plugin defaults --- 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; }