Skip to content

Render same color of nodes in a group ? #69

@NKumawat23

Description

@NKumawat23

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions