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

Centered Node #28

Open
matviishyn opened this issue Jul 31, 2019 · 4 comments
Open

Centered Node #28

matviishyn opened this issue Jul 31, 2019 · 4 comments

Comments

@matviishyn
Copy link

Hello, is it possible to get one root node at center and others around it?

@jmsv23
Copy link
Contributor

jmsv23 commented Jul 31, 2019

can you give me more details about the thing that you want to acomplish?

@matviishyn
Copy link
Author

basically, I want it to be the same way as is, but with only one detail - I want to pass an external image and align at the center, other bubbles would be around

something like here - http://phuonghuynh.github.io/javascript/d3js/2014/12/14/bubble-chart.html
but the central bubble is custom and smaller

@jmsv23
Copy link
Contributor

jmsv23 commented Aug 1, 2019

this it's tricky the responsable for resolve the layout of the graph it's d3.pack (https://d3-wiki.readthedocs.io/zh_CN/master/Pack-Layout/) and calculate automatically the position of the bubbles based on the value of the node, it has several configuration so to acomplish the think that you want you should maybe create a fork of this library and adapt to your needs

@matviishyn
Copy link
Author

Thanks for the answer, also a question, I'd like to pass a image and render it instead of circles, basically fill graph with circle images, is it possible?

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