mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
use inLabelRange when tooltips are in label mode
This commit is contained in:
parent
b21061c164
commit
d3538a1fbd
@ -223,7 +223,7 @@
|
|||||||
|
|
||||||
helpers.each(this.data.datasets, function(dataset, datasetIndex) {
|
helpers.each(this.data.datasets, function(dataset, datasetIndex) {
|
||||||
helpers.each(dataset.metaData, function(element, index) {
|
helpers.each(dataset.metaData, function(element, index) {
|
||||||
if (element.inRange(eventPosition.x, eventPosition.y)) {
|
if (element.inLabelRange(eventPosition.x, eventPosition.y)) {
|
||||||
elementsArray.push(element);
|
elementsArray.push(element);
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user