Pie Chart Update, II (V5)
A donut chart displays five proportional segments, with radio buttons toggling between apple and orange datasets. The code loads tab-separated data via `d3.tsv`, builds arcs with `d3.arc`, and animates value changes using `transition.attrTween` with an in-place `_current` angle interpolator. D3 v5’s `d3.pie` recomputes segment angles on selection change, while SVG paths redraw smoothly over 750 milliseconds.
AI-generated descriptionThis variation of a donut chart demonstrates how to update values with an animated transition. Clicking on the radio buttons changes the displayed metric.
Next: Missing Data<br> Previous: Static Update
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/1346410'>Pie Chart Update, II</a>