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

Ability to display node labels in different positions relative to the node center #299

Closed
david-andrew opened this issue Feb 13, 2020 · 2 comments

Comments

@david-andrew
Copy link
Contributor

I would like to be able to display node labels above the nodes they are attached to, instead of the default positioning to the right of the node. Is this possible? Ideally I would like to be able to achieve this without having to create completely custom node symbols

I think a nice interface for this functionality would be the ability to specify the angle and distance a label is from the center of its node (or alternatively x and y offsets).

For example, I am trying to create a graph that looks like this:
graph_label_position_example

@danielcaldas
Copy link
Owner

This feature makes total sense. Added priority high, thank you @david-andrew

@danielcaldas
Copy link
Owner

Released in react-d3-graph 2.5.0.

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

No branches or pull requests

2 participants