Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a barchart

Public visualization

Viewing a saved revision (read-only)

a82394c738fe4d68b26c64d39bcafbb8

Making a barchart

0 stars0🌍 Public
SShane Carey
Last edited Aug 30, 2018
Created on Aug 30, 2018
Forked from Hello VizHub!

This example shows a static bar chart of world population by continent for 2018, with values in absolute numbers and percentages of the world total. The chart renders as an SVG using D3 v5, reading inline CSV data parsed with `d3.csvParse`. The code maps each row, stripping commas from population figures and converting them to numbers, then logs the parsed array to the console. The visualization relies on D3 selections to access the SVG dimensions, though no axes or bars are explicitly drawn in the provided code.

AI-generated description