Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bubble chart

Public visualization

Fork of Bubble chart

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

This bubble chart visualizes the relationship between GDP, population, and life expectancy for 16 countries using a Cartesian coordinate system. Each circle's x-position corresponds to GDP, y-position to population, and radius to life expectancy, with color distinguishing countries. Built with D3 v7, the visualization uses `d3.scaleLinear()` for axes, `d3.scaleSqrt()` for bubble sizing, and `d3.scaleOrdinal()` for categorical coloring. Interactive hover effects enlarge bubbles and display country labels via `.on('mouseover')` handlers. Data loads from a local CSV file, rendered as SVG with animated transitions on user interaction.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed