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

labelOffset #70

Open
RagavL opened this issue Dec 6, 2018 · 0 comments
Open

labelOffset #70

RagavL opened this issue Dec 6, 2018 · 0 comments

Comments

@RagavL
Copy link

RagavL commented Dec 6, 2018

How to add label offset to the following example to make sure that label is the middle of the node.Please help urgent
<InteractiveForceGraph
simulationOptions={{ height: 300, width: 300 }}
labelAttr="label"
onSelectNode={(node) => console.log(node)}
highlightDependencies

<ForceGraphNode node={{ id: 'first-node', label: 'First node',offset:'' }} fill="red" />
<ForceGraphNode node={{ id: 'second-node', label: 'Second node' }} fill="blue" />
<ForceGraphLink link={{ source: 'first-node', target: 'second-node' }}/>

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

1 participant