Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Air Quality in NYC Boroughs

Public visualization

Air Quality in NYC Boroughs

0 stars0🌍 Public
XXinyu Huang
Last edited Dec 13, 2021
Created on Dec 12, 2021
Forked from HTML Starter

This visualization displays air quality measurements for New York City boroughs, showing bar charts for PM2.5, NO2, and O3 levels. Users switch between pollutants via buttons, which update the chart title and redraw the bars. The D3 v7 code uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.axisLeft`/`d3.axisBottom` for axes. Hovering over a bar reveals the value differences between that borough and all others, using D3 transitions and appended text labels.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed