Pie chart with annimation
✓ Published0🌍 Public
DDDDDDanica
Last edited Apr 4, 2017
Created on Apr 3, 2017
This interactive pie chart displays six categorical values under three selectable datasets (“Total,” “Option 1,” “Option 2”) with a donut layout and legends. It animates slice arc changes using D3’s `transition` and `attrTween`, interpolating between old and new arc paths when switching datasets via radio buttons. The SVG rendering includes slice paths, label polylines, and tooltips on mouseover, while colors come from `d3.scale.category20()`. The code mixes d3.v4 and d3.v3 APIs, including `d3.layout.pie` and `d3.svg.arc`.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed