Skip to main content
100%

Pie chart

✓ Published1🌍 Public
Rrlia0010
Last edited Jun 15, 2020
Created on Jun 15, 2020
Forked from Hello VizHub

This interactive pie chart visualizes regional apple and orange counts from a static JSON dataset, with radio buttons toggling between fruit types. The donut chart updates its arcs using `d3.pie` and `d3.arc`, while `transition.attrTween` animates shape changes. A legend built with SVG circles and text labels shows region names and colors from a `d3.scaleOrdinal` palette. The rendering uses D3.js (v5) with SVG and includes a 2-second delayed arc transition after each update.

AI-generated description
MIT Licensed

Similar vizzes