Multiple Line plot with Dropdown
This interactive visualization displays monthly air quality measurements from the London Datastore, plotting pollutant concentrations over time with a dropdown menu to switch between different pollutants. The chart renders smooth multi-line paths for each year using d3.line and curveBasis, while a dynamic y-scale and axis labels update to reflect the selected measurement. The dropdown menu, built with d3.select and .on('change'), triggers a render function that recomputes the line chart with the newly chosen column. Color-coded lines distinguish annual trends, with a legend explaining the color scale.
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> Inspiration from Curran and this Vis. This week I spent time munging the data and adding a dropdown menu.