mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Merge pull request #413 from nnnick/fix/sparse-dataset-tooltip
Prevent spare datasets from breaking MultiTooltips
This commit is contained in:
commit
23deaa9307
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user