mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-08 10:06:40 +02:00
Merge pull request #1823 from Yash-Singh1/patch-1
Removed 0% on pie chart
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user