Update horizontal bar chart default tooltip mode (#7488)

Ensures that vertical and horizontal bar charts behave the same way
This commit is contained in:
Evert Timberg 2020-06-10 07:50:15 -04:00 committed by GitHub
parent e97acd95f9
commit 21fff1e4fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -33,7 +33,6 @@ defaults.set('horizontalBar', {
},
tooltips: {
mode: 'index',
axis: 'y'
}
});