AQI in America with Histogram
✓ Published2🌍 Public
This example combines a choropleth map of U.S. states with a histogram of air quality index (AQI) values over time. The map uses d3.geoAlbersUsa projection and d3.geoPath to draw state boundaries, with circles positioned by latitude and longitude and colored by a d3.scaleQuantile. The histogram below aggregates AQI readings by month using d3.histogram and d3.timeMonths, computing monthly means. Both visualizations are rendered as SVG within a React component, using data from a CSV file of ozone measurements.
AI-generated descriptionMIT Licensed