Skip to main content
100%

Idk yet

✓ Published0🌍 Public
AAlexDaGr8
Last edited Sep 1, 2015
Created on Sep 1, 2015

The visualization shows a donut chart animating two data slices, with a text label appearing only on slices larger than a specified angle. The chart is built using D3.js, where an SVG group is centered and arcs are generated with `d3.svg.arc` and `d3.layout.pie`. Each slice transitions smoothly via `transition.attrTween` to interpolate angles, and clicking a slice expands it using an alternate arc radius. The code uses a linear scale to map data values to arc angles, a category10 color scale for fills, and positions labels using arc centroids with rotation. Data is hardcoded as `[1,2]` in the script.

AI-generated description

Similar vizzes