Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question 3

Public visualization

Viewing a saved revision (read-only)

4964a92de5df4acfa15937371c77454c

Question 3

0 stars0🌍 Public
Mmoulidomar@hotmail.com
Last edited Apr 15, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

A scatter plot displays the relationship between PM10 and NO2 air pollution levels, with each point shaped according to the country name using D3’s `scaleOrdinal` and `symbolsFill` generators. The visualization renders in an SVG via `d3.scaleLinear` for axes, with a custom legend built from `symbol` shapes. Data is fetched from a GitHub-hosted CSV and parsed with `d3.csvParse`. The code relies on reusable modules for axes and legend rendering, demonstrating modular D3 v7 chart composition.

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.