Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie chart

Public visualization

Pie chart

0 stars4🌍 Public
KKrister
Last edited Apr 23, 2020
Created on Apr 21, 2020
Forked from Pie chart

The visualization displays two interactive pie charts comparing apple and orange counts across five regions, with a toggleable radio interface to switch datasets. Built with D3.js (v5.16.0), it renders an animated SVG donut chart using `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` color scales. Legends appear as colored dots and labels beside the chart. On dataset change, arcs transition smoothly via `transition.attrTween` with interpolation, and a delayed auto-animation replays the arc tweens every two seconds. Data is loaded asynchronously from `data.json` via `d3.json`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed