Skip to main content
100%

Group-in-a-box layout

✓ Published0🌍 Public
FFrissAnalytics
Last edited Sep 3, 2018
Created on Sep 3, 2018

A group-in-a-box layout visualizes interactions between characters in Les Misérables, grouping nodes by their community (detected via Louvain modularity) inside rectangular cells. Within each group, a force-directed simulation positions nodes, while links show both intra- and inter-cluster connections. The code uses D3 v4’s `d3.forceSimulation` with `d3.forceLink`, `d3.forceManyBody`, `d3.forceCenter`, and a custom `forceInABox` force that moves nodes toward foci computed from a treemap layout. Data is loaded from `jean.json` and rendered as SVG circles and lines.

AI-generated description

A group-in-a-box layout showing interactions between Les Miserables characters, where the characters are grouped by their communities (determined using the Louvain modularity community detection algorithm). Within each group, nodes are positioned using a force-directed layout.

In contrast with a pure force-directed layout, group-in-a-box layouts can clearly show connections within and between clusters. Matrix diagrams can also be used for this purpose, but group-in-a-box can be more effective for showing connections within and between categories of nodes that do not form clear clusters.

forked from <a href='http://bl.ocks.org/rpgove/'>rpgove</a>'s block: <a href='http://bl.ocks.org/rpgove/386b7a28977a179717a460f9a541af2a'>Group-in-a-box layout</a>

gpl-3.0 Licensed

Similar vizzes