Week 3: Pollution in World Cities
This animated bubble chart visualizes real-time Air Quality Index (AQI) data for five major world cities, sourced from IQAir’s dynamic ranking. Circles radiate outward with staggered transitions, sized proportionally to each city’s AQI, with labels displaying city name and index value. Colored fills distinguish pollution levels, from hazardous Kinshasa in dark red to cleaner Yangon in white. Built with D3.js (v7), the visualization uses `transition` delays and easing to animate enter and update states, while hardcoded coordinates position cities horizontally. The code prepares for future features like city lookup by name or AQI, image annotations, and pairwise comparisons.
AI-generated descriptionAuthor: Jacob Chlebowski - jachlebowski@wpi.edu
The World Air Quality Index (AQI) Ranking (note that this dataset is dynamic)
Tasks:
- I want to summarize DYNAMIC AQI data from all cities from the dataset via a DYNAMIC bubble chart
- I want to search specific cities (lookup) by name or by AQI
- I want to annotate my thoughts on a city
- I want to record pictures of cities and link them to the cities on the chart
- I want to compare two cities based on the AQI