react-vis-force icon indicating copy to clipboard operation
react-vis-force copied to clipboard

labelOffset

Open RagavL opened this issue 6 years ago • 0 comments

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' }}/> </InteractiveForceGraph>

RagavL avatar Dec 06 '18 23:12 RagavL