Fork of Pie Chart
✓ Published0🌍 Public
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 descriptionMIT Licensed