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

Render same color of nodes in a group ?

Open NKumawat23 opened this issue 7 years ago • 1 comments

I need to group up the nodes of same color. I tried with forceCluster which is placed inside updateSimulation but not working. please suggest what's wrong with my code OR if there is another way available . Using : InteractiveForceGraph code looks like :

> updateSimulation={function( sim,options){
> 	sim.force('cluster', forceCluster()
> 	.centers(function (d) {
> 	return gCluster[that.getGroup(d.id).group] })
> 	.strength(5));
> 
>         sim.restart();
>         return sim;
> }}

NKumawat23 avatar Oct 12 '18 09:10 NKumawat23

will also like to know how to group nodes of same group/color.

ddor254 avatar Oct 22 '19 09:10 ddor254