Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 viz 1

Public visualization

Viewing a saved revision (read-only)

f68bcf26e71043ec899f16d0399a4586

D3 viz 1

0 stars0🌍 Public
Hharshabandi3060@gmail.com
Last edited Dec 4, 2024
Created on Dec 4, 2024

This visualization shows daily air pollution trends for four pollutants—NO2, O3, SO2, and CO—in Phoenix, Arizona, using data from January 2000. Multiple time-series lines are drawn in an SVG, with each pollutant assigned a distinct color via `d3.scaleOrdinal` and `d3.schemeCategory10`. The code uses `d3.csv` to load the dataset, `d3.timeParse` to convert dates, and `d3.line` to generate the paths. Axes are rendered with `d3.axisBottom` and `d3.axisLeft`, and a legend is placed at each line’s final data point.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.