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

can the graph nodes and line not stacked #58

Closed
dee-el opened this issue Mar 21, 2018 · 4 comments
Labels

Comments

@dee-el
Copy link

@dee-el dee-el commented Mar 21, 2018

first of all, i like this modules, its fulfilling my simple graph right now
but there is something i don't like it. all the nodes and lines is stacked each other
can the nodes have their coordinate, or simply put their coordinate on the data?

Edit: also will it better if each link have each strokeWidth?

@danielcaldas

This comment has been minimized.

Copy link
Owner

@danielcaldas danielcaldas commented Mar 21, 2018

Hello @dee-el. Yes nodes can have their own coordinates you just need to provide x and y on the graph data initialization.

also will it better if each link have each strokeWidth? They could have, currently you can only override globals config for the properties that have this mark 🔍🔍🔍 on the react-d3-graph documentation

@stale stale bot removed the wontfix label Mar 21, 2018
@dee-el

This comment has been minimized.

Copy link
Author

@dee-el dee-el commented Mar 22, 2018

Hi, @danielcaldas, I don't understand about provide x and y on the graph data initialization. part.
Is that mean on props data, i can put it like
nodes: [{id: 1, label: 'label1', x: 1, y: 10}] ?

@danielcaldas

This comment has been minimized.

Copy link
Owner

@danielcaldas danielcaldas commented Mar 22, 2018

That is correct. For it to work properly you will also have to set the config staticGraph to true in order to freeze nodes positions to the ones you provided initially, check docs on staticGraph for more information on this.

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Apr 21, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 21, 2018
@stale stale bot closed this May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.