Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

b5bb1299f8f14f1cb86bcc994a7246d0

Making a Bar Chart

0 stars0🌍 Public
Sshallowater
Last edited Jul 11, 2019
Created on Jul 11, 2019
Forked from Making a Bar Chart

This example displays a static bar chart of country populations, with each bar’s height corresponding to the population value from a CSV file. The chart uses D3 v5’s `select` and `csv` methods to load the data and bind it to SVG `rect` elements. The population values are converted from thousands to raw numbers using unary plus operators before rendering. The SVG container is sized at 960 by 500 pixels, and the page includes minimal CSS to remove margins.

AI-generated description