Skip to main content
Public

Share visualization

Loading preview…

Fork of D3 Starter

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of D3 Starter

0
BBhargav Reddy
Last edited Nov 10, 2025
Created on Nov 10, 2025
Forked from D3 Starter

This example visualizes world population data from a 2024 Kaggle dataset using a choropleth map. The map displays each country’s population with a blue color scale, from light (low) to dark (high), based on the `Population 2024` column, while countries without data appear gray. The visualization is built with D3 v7 and TopoJSON, using `d3.geoNaturalEarth1` for the projection and `d3.geoPath` to render geographic features. It loads world map geometry from the world-atlas package and the CSV dataset, then employs `d3.scaleSequential` with `d3.interpolateBlues` to map population values to fill colors. Interactive tooltips display exact population figures on mouseover, and a graticule and legend provide spatial and color context.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed