Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task 5

Public visualization

Viewing a saved revision (read-only)

961e915bddf24d6eb73f4e5de78a68e1

Task 5

0 stars0🌍 Public
VVinish Reddy Kamireddy
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from Hello VizHub

A bar chart compares air quality index (AQI) to total deaths per million for the first 14 countries in the CSV dataset. Bar heights encode death rates while bar colors shift from blue to red based on AQI value. The visualization uses D3.js version 7, specifically the `d3.csv`, `d3.scaleBand`, `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft` APIs. Hovering over a bar displays a fixed tooltip via mouseover and mouseout events.

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.