mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-05 16:04:03 +01:00
Prevent spare datasets from breaking MultiTooltips
This commit is contained in:
@@ -873,7 +873,9 @@
|
||||
yMin;
|
||||
helpers.each(this.datasets, function(dataset){
|
||||
dataCollection = dataset.points || dataset.bars || dataset.segments;
|
||||
Elements.push(dataCollection[dataIndex]);
|
||||
if (dataCollection[dataIndex]){
|
||||
Elements.push(dataCollection[dataIndex]);
|
||||
}
|
||||
});
|
||||
|
||||
helpers.each(Elements, function(element) {
|
||||
|
||||
Reference in New Issue
Block a user