Skip to main content
100%

TreeMap

✓ Published0🌍 Public
LLauraCortes
Last edited Feb 27, 2017
Created on Feb 27, 2017

This example visualizes a hierarchical dataset as a treemap, using rectangles sized by each node’s `degree` value and colored by its `domain` attribute to reveal the relative prominence of categories. Built with D3 v3, the code loads hierarchical JSON data and applies the `d3.layout.treemap` layout with custom padding. Node labels and background colors are assigned via D3 selections, with positions and dimensions computed by the layout and applied through inline styling. The visualization provides a compact overview of the dataset’s nested structure and degree distribution.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/LauraCortes/'>LauraCortes</a>'s block: <a href='http://bl.ocks.org/LauraCortes/16909ffba9102cf0c8dea1f648c2c1f9'>Arc Diagram</a>

forked from <a href='http://bl.ocks.org/LauraCortes/'>LauraCortes</a>'s block: <a href='http://bl.ocks.org/LauraCortes/619b3829dc8b4a1935267c2cefa844eb'>TreeMap</a>

mit Licensed

Similar vizzes