Multiple Line plot with Dropdown
This interactive visualization presents multiple line plots of air quality data from the Kings College London dataset, displayed from January 2010 through August 2018. A dropdown menu allows users to select which pollutant metric to display, with each line colored according to its category. The visualization uses D3 v5 with SVG rendering and animated transitions. The code employs `scaleTime`, `scaleLinear`, `line`, `nest`, and `transition.attrTween` via D3’s transition system, alongside custom modules for the dropdown menu and color legend.
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.