graph2
✓ Published0🌍 Public
A donut chart displays the partisan composition of the U.S. Senate across five congressional sessions, from the 112th through the 116th Congress. Users select a specific congress from a dropdown menu, which triggers animated transitions between the donut’s arc segments and updates the numeric labels positioned along thin connector lines. Built with D3 v5, the visualization uses `d3.pie`, `d3.arc`, and `transition.attrTween` to interpolate geometry smoothly, while `d3.scaleOrdinal` assigns colors to Republicans, Democrats, and Others. The underlying data is embedded as an array of objects containing seat counts per party for each session.
AI-generated descriptionMIT Licensed