mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Update horizontal bar chart default tooltip mode (#7488)
Ensures that vertical and horizontal bar charts behave the same way
This commit is contained in:
parent
e97acd95f9
commit
21fff1e4fe
@ -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
|
||||
|
||||
|
||||
@ -33,7 +33,6 @@ defaults.set('horizontalBar', {
|
||||
},
|
||||
|
||||
tooltips: {
|
||||
mode: 'index',
|
||||
axis: 'y'
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user