Skip to main content
100%

Sunburst to icicle #2

✓ Published0🌍 Public
TThanaporn-sk
Last edited Jun 24, 2017
Created on Jun 24, 2017

A sunburst chart smoothly morphs into an icicle chart, preserving overall dimensions by animating the perimeter difference between inner and outer arcs until it approaches zero. The transition uses d3.v4 with SVG paths, a `d3.transition()` and custom tween to interpolate the arc radii and angles, stopping at an 8-pixel perimeter gap due to a Chrome rendering bug. The visualization applies `d3.partition()` to hierarchical flare.json data, with `d3.arc()` generating the paths and `d3.scaleLinear()` driving the animation.

AI-generated description

Transitioning between a sunburst and an icicle chart while preserving the chart dimensions by interpolating the difference in perimeter between the inner section and outer section until the difference is near zero.

Chrome currently has a rendering bug once the arcs' radii get really extreme, so this stops at about an 8-pixel difference.

forked from <a href='http://bl.ocks.org/veltman/'>veltman</a>'s block: <a href='http://bl.ocks.org/veltman/bd8d6a2f57dd8729da3437492fb9debd'>Sunburst to icicle #2</a>

mit Licensed

Similar vizzes