Zoomable Sunburst
A zoomable sunburst visualization displays hierarchical data in a radial layout, with the root at the center and leaves along the circumference, where each arc’s angle and radius encode its value. Clicking an arc zooms into that subtree, and clicking the center circle zooms back out, using smooth animated transitions. The code employs the d3.layout.partition layout, d3.svg.arc for arc geometry, and d3.scale.linear and d3.scale.sqrt for positioning, with color from d3.scale.category20c. Data comes from the included flare.json file, and the zoom effect uses transition.attrTween to interpolate the domain and range scales.
AI-generated descriptionClick on any arc to zoom in. Click on the center circle to zoom out.
A sunburst is similar to a 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/4348373'>Zoomable Sunburst</a>