Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity test

Public visualization

Viewing a saved revision (read-only)

373fbe78361b40959aaf7a40b1b83024

Activity test

0 stars0🌍 Public
SSamir Tarda
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This bubble chart visualizes the correlation between average life expectancy, population, and GDP per capita for six countries using a CSV dataset. Each circle’s position maps to life expectancy and population on the x and y axes, while its radius encodes GDP per capita and its color distinguishes countries via a `d3.scaleOrdinal` with interpolated turbo colors. Interactive tooltips appear on hover using mouse events. A legend includes size reference circles and color swatches, all rendered with SVG in D3 v7.

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.