mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
Removed 0% on pie chart
This commit is contained in:
parent
7cc2daa696
commit
2b61d131dc
@ -100,7 +100,7 @@ export const draw = (txt, id) => {
|
|||||||
// Use the centroid method to get the best coordinates.
|
// Use the centroid method to get the best coordinates.
|
||||||
svg
|
svg
|
||||||
.selectAll('mySlices')
|
.selectAll('mySlices')
|
||||||
.data(dataReady)
|
.data(dataReady.filter(value => value.data.value !== 0))
|
||||||
.enter()
|
.enter()
|
||||||
.append('text')
|
.append('text')
|
||||||
.text(function(d) {
|
.text(function(d) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user