Merge pull request #2789 from awallat/awallat-patch-tooltip-multiple-datasets

Fix tooltip not shown for missing dataset-value
This commit is contained in:
Evert Timberg
2016-06-28 07:26:05 -04:00
committed by GitHub

View File

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