Scatter Plot Convert to Line plot
This interactive visualization displays monthly average air quality measurements for London, comparing PM2.5 and PM10 particulate levels across different months. Users can select different pollutant variables from a dropdown menu, which updates the y-axis and recomputes the line chart using d3.scaleTime and d3.scaleLinear. The scatter plot converts to a line plot, with data points colored by month using d3.scaleOrdinal and the inferno color scheme. A color legend allows filtering by month, highlighting relevant data points. The visualization uses data from the Kings College London Air Quality Dataset via the London Datastore, rendered with d3.v5 SVG and animation transitions.
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.