Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Starter

Public visualization

Viewing a saved revision (read-only)

abbbf61d0394498488d6aff48d98d0a5

Fork of D3 Starter

0 stars0🌍 Public
Mminaadel6600
Last edited Oct 27, 2021
Created on Oct 26, 2021
Forked from D3 Starter

A horizontal bar chart displays population figures for nine countries, sourced from an embedded CSV file. The bars render as SVG rectangles, with each country's population scaled linearly along the x-axis and country names positioned using a band scale on the y-axis. The code uses d3.csv to load the data, d3.scaleLinear for the width mapping, d3.scaleBand for categorical spacing, and d3.select to append the rectangles.

AI-generated description

A demonstration of how to start using D3 version 6.