@@ -540,7 +540,7 @@ export const createPercentBarOption = (
' : ' +
val +
' (' +
- ((obj[i]['value'] / total) * 100).toFixed(1) +
+ (total == 0 ? 0 : (obj[i]['value'] / total) * 100).toFixed(1) +
' %)' +
'</br>';
}