Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

T9 & 10 Q1

Public visualization

T9 & 10 Q1

0 stars0🌍 Public
Aaashrithas2000@gmail.com
Last edited Apr 28, 2024
Created on Apr 28, 2024
Forked from Piechart ICE7

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

Comments

Sign in to join the discussion.

MIT Licensed