+ { console.log(uniqueValues)}
{uniqueValues[key].map((value) => (
value !== '' && (
- {value}
{/* Point Percentage */}
+
+ {/* {console.log(value)} */}
{!showCount && showPercent && value && (
- - {Math.round((countFilteredPointsForValue(key, value) / pointsData.length) * 100)}%
+ // make a sum
+ - {Math.round((countFilteredPointsForValue(key, value) / Math.round(countFilteredPointsTotal(key,value)) /* ERROR IS HERE */ ) * 100)}%
)}
{/* Point Count */}
{showCount && showPercent && value && (
- - {countFilteredPointsForValue(key, value)} / {pointsData.length}
+ - {countFilteredPointsForValue(key, value)} / {Math.round(countFilteredPointsTotal(key,value)) /* ERROR IS HERE */}
)}
)))}