Merge pull request #413 from nnnick/fix/sparse-dataset-tooltip

Prevent spare datasets from breaking MultiTooltips
This commit is contained in:
Nick Downie 2014-07-02 21:36:28 +01:00
commit 23deaa9307

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