Sunburst Partition
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 descriptionA 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>