Merge pull request #1823 from Yash-Singh1/patch-1

Removed 0% on pie chart
This commit is contained in:
Ashish Jain 2020-12-17 20:39:48 +01:00 committed by GitHub
commit 4da5df9c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ export const draw = (txt, id) => {
// Use the centroid method to get the best coordinates.
svg
.selectAll('mySlices')
.data(dataReady)
.data(dataReady.filter(value => value.data.value !== 0))
.enter()
.append('text')
.text(function(d) {