block by Kcnarf 15d54f4ccae6a3710cd3029546664eec

Weighted Voronoi Treemap in D3v4

Full Screen

This block is a port, from d3v3 to d3v4, of mkedwards‘s block: Treemap.

Warning sometimes (1% of time), code fails to compute the layout, and doesn’t update the svg. In such a case, you have to (re-)compute diagram.

Updates

On-going issues

Original README

A treemap recursively subdivides area into rectangles; the area of any node in the tree corresponds to its value. This example uses color to encode different packages of the Flare visualization toolkit. Treemap design invented by Ben Shneiderman. Squarified algorithm by Bruls, Huizing and van Wijk. Data courtesy Jeff Heer.

index.html

ConvexHull.js

PowerDiagram.js

VoronoiTreemap.js

VoronoiTreemapD3.js

d3-polygon-clip.js

d3-rebind.js

flare.json

label.json