]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fixed tooltip not showing in NULL datapoint in multi line chart 2567/head
authorAdileo Barone <adileob@gmail.com>
Mon, 16 May 2016 19:02:57 +0000 (21:02 +0200)
committerAdileo Barone <adileob@gmail.com>
Mon, 16 May 2016 19:02:57 +0000 (21:02 +0200)
src/core/core.tooltip.js

index 38ec6eac95d76883bf06b2ea6ab3733d4947b54b..44ceee7c419abbd64ebf39713111b3789ac6c105 100644 (file)
@@ -197,7 +197,7 @@ module.exports = function(Chart) {
                        var yPositions = [];
 
                        helpers.each(elements, function(el) {
-                               if (el{
+                               if (el && el.hasValue()){
                                        var pos = el.tooltipPosition();
                                        xPositions.push(pos.x);
                                        yPositions.push(pos.y);