Questions tagged [d3tree]

d3Tree github repository

19 questions
0
votes
1 answer

react-d3-tree get name to appear under the node

I am trying to use react-d3-tree to make a tree but I can not make the text for the names go under the node circle so this it is readabe. I have managed to use the css class to change to colour of the nodes but can't seem to edit the text position…
Lucy
  • 11
  • 2
0
votes
1 answer

react d3 tree library svg styles are not seeing on the tree

I have an svg design like this: true svg when I put this svg into the Tree component with renderCustomNodeElement prop, svg changes like this: broken svg Does anyone know why is this happening? You can see the full code from…
gokcer
  • 3
  • 2
0
votes
0 answers

In d3 how to calculate dynamically width and edge?

How to calculate the dy and width value dynamically? if the tree strcture changes every time. code Used below width will suit for the provided Json for a demo purpose. dy = 154.66666666666666 width = 928 but if the json dynamically? and the same…
0
votes
1 answer

Interactive Treemap d3tree in RStudio - no legend when savewidget() is used

need some help and would be grateful for any advice. I want to create an interactive treemap in R. So far, so good, so bad. I managed that and was able to create an HTML widget, but when I open it, the legend isn't there anymore. In the original…
1
2