Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do Radial FlexTree #19

Open
cvharris opened this issue Feb 23, 2021 · 1 comment
Open

How to do Radial FlexTree #19

cvharris opened this issue Feb 23, 2021 · 1 comment

Comments

@cvharris
Copy link

There are examples of radial d3 trees using the size property but I want to use flexTree to set the node size dynamically. Is there a way to create a radial tree layout with d3-flexTree?

@sumitpal29
Copy link

since only the radius will vary for circles, you can consider as squares of different sizes.
you can try calculating the center

cx = x + size /2, cy = y + size/2

where size [100, 100]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants