Donut scale
✓ Published0🌍 Public
AAbin
Last edited Mar 20, 2017
Created on Mar 16, 2017
This donut chart displays yearly counts for a single country from 2004 to 2017, using a ring of colored arcs sized by count. Each slice corresponds to a year, with a legend of colored rectangles that can be clicked to toggle individual years on or off, recalculating the pie layout and animating transitions. Hovering over a slice reveals a tooltip with the year, count, and percentage of the enabled total. The visualization is built with d3.v4, using d3.pie, d3.arc, d3.scaleBand for the legend, and d3.scaleOrdinal with the schemeCategory20b color palette, rendered as SVG with transition animations.
AI-generated description