🌍 Public
Viewing a saved revision (read-only)
9623f55d2022417cac717c44b0065f07
Fork of 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