HW7
✓ Published0🌍 Public
This visualization displays daily average air pollution levels for six pollutants (SO2, NO2, O3, CO, PM10, PM2.5) across multiple Seoul monitoring stations using a grid of horizon charts. Each chart encodes the pollutant concentration over time with layered color bands that fold overlapping values into the vertical axis, using D3.js v6 with SVG rendering. The code loads data from a CSV file, parses timestamps with d3.timeParse, groups measurements by date, and computes daily means via d3.mean. It applies d3.scaleTime, d3.scaleLinear, and d3.area to construct the horizon chart, with per-pollutant color scales and axis generation via d3.axisBottom and d3.axisLeft.
AI-generated descriptionMIT Licensed