mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-15 04:36:51 +01:00
Merge pull request #2789 from awallat/awallat-patch-tooltip-multiple-datasets
Fix tooltip not shown for missing dataset-value
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user