Skip to main content
100%

D3-fuse

✓ Published0🌍 Public
Aandrew-reid
Last edited Aug 23, 2018
Created on Aug 17, 2018

Ten thousand circles with fixed radius are scattered randomly across a canvas, and overlapping circles merge into larger clusters while retaining a branching tree of their component nodes. The d3-fuse library, using a quadtree, repeatedly fuses overlapping nodes and adjusts the center of gravity of each cluster. Mouse-wheel zoom modifies the circle radii, causing the clustering to change dynamically. The visualization is rendered on a 2D canvas, with circle size and color encoding cluster area, and text labels displaying the count of merged nodes.

AI-generated description

This is a demonstration of d3-fuse, a clustering library that allows the visual fusion of nodes that are overlapping.

The branching tree on each node cluster shows the nodes that comprise that cluster based on node overlap. Due to a moving center of gravity between each step of the clustering process and radii of the clustered nodes, trees can extend slightly beyond the node disc.

This is an initial attempt at a clustering library that doesn't rely on d3-force, though the short code of d3-fuse is borrows considerably from d3.forceCollide.

In this demonstration the mouse wheel will simulate a zoom by increasing/decreasing circle radii.

Similar vizzes