Skip to main content
100%

Fork of Accident Data ICE-7 Q2

✓ Published0🌍 Public
Aarcothanmukha
Last edited Mar 29, 2022
Created on Mar 29, 2022
Forked from Hello VizHub

This example shows a pie chart of accident costs from major U.S. states, with each slice colored and paired with a legend listing the state name and its corresponding cost value. The visualization loads CSV data from a GitHub gist using the `d3.csv` method, then computes the pie layout with `d3.pie` and renders the segments as SVG paths using `d3.arc`. Colors are assigned via `d3.scaleOrdinal`, and legend labels are formatted with `d3.format`. The SVG is selected and manipulated through D3 v5, with styling defined in an external stylesheet.

AI-generated description
MIT Licensed

Similar vizzes