Data Visualization Homework 7: Horizon Chart
✓ Published0🌍 Public
Dderrick373519@gmail.com
Last edited Nov 7, 2023
Created on Nov 4, 2023
This D3.js 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 pollutant concentration through stacked colored bands derived from the `d3.scaleLinear` y-axis, with the `d3.area` API generating the band shapes. The visualization reads hourly measurements from an `air-pollution.csv` file, computes daily means via `d3.mean`, and renders the horizon charts as SVG paths within a 6000x10000 viewport. Colors are assigned per pollutant using custom RGB scales, with each band representing a fraction of the 98th percentile value.
AI-generated descriptionMIT Licensed