From: Evert Timberg Date: Wed, 10 Jun 2020 11:50:15 +0000 (-0400) Subject: Update horizontal bar chart default tooltip mode (#7488) X-Git-Tag: v3.0.0-beta.2~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21fff1e4feae346d859d258639ee5f1908142322;p=thirdparty%2FChart.js.git Update horizontal bar chart default tooltip mode (#7488) Ensures that vertical and horizontal bar charts behave the same way --- diff --git a/docs/docs/getting-started/v3-migration.md b/docs/docs/getting-started/v3-migration.md index d568395d1..ed19e0585 100644 --- a/docs/docs/getting-started/v3-migration.md +++ b/docs/docs/getting-started/v3-migration.md @@ -68,6 +68,7 @@ A number of changes were made to the configuration options passed to the `Chart` * `defaultFontSize` was renamed to `font.size` * `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 #### Scales diff --git a/src/controllers/controller.horizontalBar.js b/src/controllers/controller.horizontalBar.js index d573412ac..054d5192b 100644 --- a/src/controllers/controller.horizontalBar.js +++ b/src/controllers/controller.horizontalBar.js @@ -33,7 +33,6 @@ defaults.set('horizontalBar', { }, tooltips: { - mode: 'index', axis: 'y' } });