Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3.js practice

Public visualization

Viewing a saved revision (read-only)

9b3d35eb3ece45908a6799789b2ab777

d3.js practice

0 stars0🌍 Public
Ppablorezola
Last edited Jan 18, 2020
Created on Jan 18, 2020
Forked from HTML Starter

A bar chart displays population estimates for ten countries, using horizontal bars ordered from China’s 1.4 billion down to Mexico’s 130 million. The visualization loads a CSV file via `d3.csv`, converts the population strings to numbers, and renders SVG rectangles with `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis. Data binding appends rects, while `bandWidth()` sets each bar’s height, with no axes or labels shown.

AI-generated description