Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Desmaisons committed Jul 25, 2021
1 parent 11bcf4e commit b87a2e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/sunburst.vue
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ export default {
const textSelection = selection
.each(d => (d.textValue = textExtractor(d)))
.attr("display", d => (d.textValue === null ? "none" : null))
.attr(
"display",
d => (d.textValue === null || d.depth === 0 ? "none" : null)
)
.filter(d => d.textValue !== null)
.each(d => (d.textAngle = getTextAngle(d)))
.attr("transform", d => getTextTransform(d))
Expand Down

0 comments on commit b87a2e2

Please sign in to comment.