Ozone AQI Count by Days
✓ Published0🌍 Public
This example shows the number of days each ozone AQI category occurred, displayed as a pie chart with a legend listing each category and its day count. The data is loaded from a CSV file via `d3.csv`, then processed into a form suitable for `d3.pie` and rendered as SVG paths using `d3.arc`. The chart uses `d3.scaleOrdinal` with `schemeCategory10` for coloring, and a custom legend built with SVG rectangles and text. The visualization is implemented in React with D3 v5, and the SVG is updated on mouseover to log category counts.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed