Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Viewing a saved revision (read-only)

9623f55d2022417cac717c44b0065f07

Fork of Pie Chart

0 stars0🌍 Public
Ppragnyalipsa96@gmail.com
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from Pie Chart

A pie chart displays the distribution of traffic accidents by weather condition, using categorized data from a CSV file. The visualization groups records by weather type—such as Clear, Rainy, or Foggy—and sizes each slice by the count of accidents in that category. It renders in an SVG canvas with `d3.pie` and `d3.arc` generators, colors slices with `d3.scaleOrdinal`, and labels each segment with its weather name. The chart also includes a bold title positioned above the plot, generated through a reusable `pieChart` function.

AI-generated description