Skip to content

Commit

Permalink
Merge pull request #2789 from awallat/awallat-patch-tooltip-multiple-…
Browse files Browse the repository at this point in the history
…datasets

Fix tooltip not shown for missing dataset-value
  • Loading branch information
etimberg authored Jun 28, 2016
2 parents f2270ed + 72f423f commit 1ee8cb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/core.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ module.exports = function(Chart) {
var x = 0,
y = 0;
for (i = 0; i < xPositions.length; ++i) {
x += xPositions[i];
y += yPositions[i];
if (xPositions[ i ]) {
x += xPositions[i];
y += yPositions[i];
}
}

return {
Expand Down

0 comments on commit 1ee8cb5

Please sign in to comment.