T9 & 10 Q1
✓ Published0🌍 Public
This pie chart shows the distribution of car accidents across US states, using a color-coded slice for each state with accident counts formatted in thousands. The visualization includes labeled slices with values and a legend listing each state alongside its corresponding accident total. Built with D3 v5, the code fetches CSV data from a GitHub gist, uses the `pie` and `arc` generators to create the chart, and applies a `scaleOrdinal` color scale to differentiate states. The SVG rendering includes interactive legend elements and centered labels positioned via arc centroids.
AI-generated descriptionMIT Licensed