-
I'm currently trying to display taxonomic tree data using the circle packing chart but am running into some trouble with the circle labels. Essentially I am wanting to alter the label component for the labels of the top 2 levels of the tree (nodes with height 2 and 1) so that the label is positioned/translated above the associated circle node. I have achieved this using the
I am wondering if there is a way to access the originally generated label components so that I may use them and pass them to the I have provided my code in a sandbox to show what I have done and where I would like to access the original label components: https://codesandbox.io/p/sandbox/circle-packing-example-htfzw2?file=%2Fsrc%2FApp.tsx |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @due23, Nice chart! I like the colors and the overall style 😄 |
Beta Was this translation helpful? Give feedback.
-
Unrelated, but if I were you, I would define |
Beta Was this translation helpful? Give feedback.
Hi @due23,
Nice chart! I like the colors and the overall style 😄
The default component is currently not exported, but it would be possible to export
LabelSvg
andLabelHtml
from the package index file.