react-vis-force
react-vis-force copied to clipboard
Question: How does `highlightDependencies` flag work?
I have the flag on an InteractiveForceGraph
component but only the node hovered on will highlight and not adjacent nodes. I've been looking at the story example and source code but can't figure it out. Could you please provide context on this or perhaps a resource with good info on it? Thanks.
PS - In general, I think the docs need to be a lot more clear. It's very difficult to figure out what various props are for and what is available. I would like to help out with the docs once I have a better understanding of the code myself.
Hi David, I ran into the same issue this evening trying to follow the storybook with highlightDependencies. Not sure why this is but when I explicitly put a value
in the link prop of the ForceGraphLink it works like the Storybook. Overall agree some more documentation would be nice.
<ForceGraphArrowLink key="my-key" link={{ source: "my-source", target: "my-target", value: 10 }} />
Thanks @jasonlanderson. I'll give that a try when I get a chance.
Worked for me @jasonlanderson!