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

Question: How does `highlightDependencies` flag work?

Open davidleger95 opened this issue 7 years ago • 3 comments

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.

davidleger95 avatar Aug 26 '17 06:08 davidleger95

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

jasonlanderson avatar Sep 04 '17 04:09 jasonlanderson

Thanks @jasonlanderson. I'll give that a try when I get a chance.

davidleger95 avatar Sep 11 '17 01:09 davidleger95

Worked for me @jasonlanderson!

vhmth avatar Mar 20 '18 18:03 vhmth