]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Check MultiTooltip elements are numeric
authorNick Downie <hello@nickdownie.com>
Tue, 8 Jul 2014 21:19:36 +0000 (22:19 +0100)
committerNick Downie <hello@nickdownie.com>
Tue, 8 Jul 2014 21:19:36 +0000 (22:19 +0100)
src/Chart.Core.js

index 3484ae22354019c43bba9a7425efb60ef51abd93..7c1276a913769b3ff3362ce173855b3d6e4f3e80 100755 (executable)
                                                                yMin;
                                                        helpers.each(this.datasets, function(dataset){
                                                                dataCollection = dataset.points || dataset.bars || dataset.segments;
-                                                               if (dataCollection[dataIndex]){
+                                                               if (dataCollection[dataIndex] && helpers.isNumber(dataCollection[dataIndex].value)){
                                                                        Elements.push(dataCollection[dataIndex]);
                                                                }
                                                        });