Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Project

Public visualization

Viewing a saved revision (read-only)

b666523da93e4293b4fbc42afcaf6df2

Project

0 stars1🌍 Public
PPreethi Medepalli-91
Last edited Dec 4, 2024
Created on Dec 4, 2024
Forked from Hello VizHub

This visualization displays a bar chart of the top 10 pollutants ranked by their average measured value, with green bars that lighten on hover for easy comparison. It loads a CSV file from GitHub using the PapaParse library to parse the data, then processes it in JavaScript to calculate averages per pollutant. The chart is rendered as an SVG using D3 v6, employing `d3.scaleBand` and `d3.scaleLinear` for the axes, with clearly labeled tick marks and axis titles for readability.

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.