From bbc8114aadc186741e81860002ff2d736f68544d Mon Sep 17 00:00:00 2001 From: Jacco van den Berg Date: Fri, 16 Aug 2024 09:36:47 +0200 Subject: [PATCH] Enable fix --- src/plugins/plugin.tooltip.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/plugin.tooltip.js b/src/plugins/plugin.tooltip.js index a061aacfc76..b39681ce2ca 100644 --- a/src/plugins/plugin.tooltip.js +++ b/src/plugins/plugin.tooltip.js @@ -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;