From 21fff1e4feae346d859d258639ee5f1908142322 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Wed, 10 Jun 2020 07:50:15 -0400 Subject: [PATCH] Update horizontal bar chart default tooltip mode (#7488) Ensures that vertical and horizontal bar charts behave the same way --- docs/docs/getting-started/v3-migration.md | 1 + src/controllers/controller.horizontalBar.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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' } }); -- 2.47.2