Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Let's make a face with D3.js!

Public visualization

Viewing a saved revision (read-only)

f9f53fbb45514ff0b687a6ee3e2c2d54

Fork of Let's make a face with D3.js!

0 stars0🌍 Public
Ccaixinying138@gmail.com
Last edited Mar 21, 2026
Created on Mar 21, 2026

This bar chart visualizes the populations of ten countries, with bar width proportional to each country’s population in thousands. Built with D3.js v5, it uses `d3.select` to target the SVG, `d3.csv` to load the data, and `d3.scaleLinear` with `d3.max` to map population values to pixel widths. Each bar is a `rect` appended via `enter()`, with a fixed height of 300 pixels. The data comes from a local `data.csv` file, rendered as an SVG graphic.

AI-generated description