Prevent spare datasets from breaking MultiTooltips

This commit is contained in:
Nick Downie
2014-07-02 21:09:04 +01:00
parent 641fc02212
commit d7632efe65

View File

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