Skip to content

Commit

Permalink
Enable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacco van den Berg committed Aug 16, 2024
1 parent 1ec45d3 commit bbc8114
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/plugin.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ const positioners = {
}
}

// // No visible items where found, return false so we don't have to divide by 0 which reduces in NaN
// if (count === 0 || xSet.size === 0) {
// return false;
// }
// No visible items where found, return false so we don't have to divide by 0 which reduces in NaN
if (count === 0 || xSet.size === 0) {
return false;
}

const xAverage = [...xSet].reduce((a, b) => a + b) / xSet.size;

Expand Down

0 comments on commit bbc8114

Please sign in to comment.