Skip to content

d3 force plugin that implements the GroupInABox algorithm that distributes nodes using a treemap to identify better clusters

License

Notifications You must be signed in to change notification settings

emeeks/forceInABox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

forceInABox.js

A d3.js force extension that implements the Group-in-a-box layout algorithm to distribute nodes in a network according to their clusters. The algorithm uses a treemap to compute focis that are later used to distribute each cluster into it's own box.

To use it you need to include the library, and use the forceInABox instead of the normal d3.layout.force

	<script type="text/javascript" src="forceInABox.js">   </script>
	//create the force and specify the grouping parameter
	var force = d3.layout.forceInABox()
					.groupBy("group");

	//Add nodes and edges
	force.nodes(nodes)
		.edges(edges)
		.start();

	//Add the onTick method to the tick event
	force.on("tick", function(e) {
      force.onTick(e);
    };

About

d3 force plugin that implements the GroupInABox algorithm that distributes nodes using a treemap to identify better clusters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.3%
  • HTML 32.7%