Pie Chart Update, V
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 30, 2013
This example shows an animated pie chart that updates when the user selects a fruit type via radio buttons. The chart uses a data-join with a key function to smoothly transition arcs between states, preserving the identity of each region’s slice. Built with d3.v3, it leverages `d3.layout.pie`, `d3.svg.arc`, and `transition.attrTween` to interpolate arc geometry over 750 milliseconds. The data comes from a TSV file, nested by fruit with `d3.nest`, and the SVG paths animate by finding neighboring arcs to minimize movement.
AI-generated descriptionThis example demonstrates using a data-join with a key function to update a pie chart.
Previous: Static Data-Join
gpl-3.0 Licensed