Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie chart

Public visualization

Viewing a saved revision (read-only)

a161bf37a31c4c25910037a2566abf16

Pie chart

0 stars1🌍 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