Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bubble chart

Public visualization

Viewing a saved revision (read-only)

ab10d31f8fc04fcca500d370de83ae89

Fork of Bubble chart

0 stars0🌍 Public
Aanjalimadhavi98@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Bubble chart

A bubble chart displays the correlation between the area in square kilometers, GDP in billion USD, and population in millions for major U.S. cities. The visualization uses D3.js v7, rendering SVG circles whose x-position maps population, y-position maps area, and radius encodes GDP. A color scale, derived from the city names via `d3.interpolateTurbo` and `d3.scaleOrdinal`, distinguishes each city, while a tooltip shows the city on hover. The code also includes a legend for bubble size and interactive hover effects.

AI-generated description