Skip to main content
100%

Sunburst Partition

✓ Published0🌍 Public
LLauraCortes
Last edited May 3, 2017
Created on May 3, 2017

This sunburst visualization uses a radial partition layout to display hierarchical data from a custom `flare.json` dataset, with the root node at the center and leaves on the circumference. The interface offers two modes—Count and Size—that recompute arc angles based on either a uniform value or the `size` property, animating transitions between them via `transition.attrTween` and a custom `arcTween` interpolation. Built with d3.v3, the code employs `d3.layout.partition`, `d3.svg.arc`, and a `d3.scale.category20c` color scale, with SVG paths styled by parent node names.

AI-generated description

A sunburst is similar to the treemap, except it uses a radial layout. The root node of the tree is at the center, with leaves on the circumference. The area (or angle, depending on implementation) of each arc corresponds to its value. Sunburst design by John Stasko. Data courtesy Jeff Heer.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4063423'>Sunburst Partition</a>

gpl-3.0 Licensed

Similar vizzes