]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Leftover defaults (#7628)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Wed, 15 Jul 2020 22:13:10 +0000 (01:13 +0300)
committerGitHub <noreply@github.com>
Wed, 15 Jul 2020 22:13:10 +0000 (18:13 -0400)
* Remove leftover placeholders from defaults
* Add migration note about moved plugin defaults

docs/docs/getting-started/v3-migration.md
src/core/core.defaults.js

index 2fc9f141f2682c9af5d011b9733ded169f7f88bf..838f336294f25bc11bf796a163152ccb381fec86 100644 (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
 
index 74730c45e6dda51d5b09c1560127e9fbe394cb75..61663fd186cf70f8db781befebb55e43b5a0ae69 100644 (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;
        }