Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Barras D3.js

Public visualization

Viewing a saved revision (read-only)

4f01d6e19a94411aa2c9336746531de7

Barras D3.js

0 stars1🌍 Public
Bbasskur
Last edited Jan 6, 2020
Created on Jan 6, 2020
Forked from Barras D3.js

A horizontal bar chart displays the top 10 most populous countries, using D3.js to load a CSV file and render an SVG. The code employs `d3.csv`, `scaleLinear`, `scaleBand`, and `axisLeft`/`axisBottom` to map population values to bar lengths and country names to y-axis positions. Bars are drawn as SVG `rect` elements with a steelblue fill. The chart includes a title and an x-axis label, with population values multiplied by 1,000 from the raw data.

AI-generated description