🌍 Public
Viewing a saved revision (read-only)
46f3968a88e54eeea15f4f5251f0d961
T9 & 10 Q1
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 description