Scatter Plot Pollutant (Menu) over Time
This interactive scatter plot visualizes monthly air quality measurements for London from January 2010 through August 2018, sourced from the Kings College London Air Quality Dataset. Users select which two pollutants to plot against each other using dropdown menus, while the color of each circle encodes the month of the year using a D3 `scaleOrdinal` color scale based on `interpolateInferno`. Clicking a legend item highlights all data points from that month, dimming others. The visualization uses D3 v5, rendering as an SVG with animated transitions of 1500 milliseconds via `transition.duration` and `.delay`, with axis and legend components built using D3’s `axisBottom`, `axisLeft`, and custom `dropdownMenu` and `colorLegend` modules.
AI-generated descriptionKathleen Cachel
Data in this scatter plot is from from the Kings College London Air Quality Dataset in the London Datastore. The data is from January 2010 through August 2018.
</n> Thanks to Jonathan for helping me dubug my code.