Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

71919a16ef8a4aa4af49089fd6d38798

Making a Bar Chart

0 stars0🌍 Public
Rross-fisher
Last edited Nov 7, 2019
Created on Oct 9, 2019

A horizontal bar chart displays population estimates for ten countries, with bars extending from left to right and labeled by country name. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` to map population values and country names to pixel positions, while a data join appends `rect` elements to the SVG. Data is loaded from a CSV file using `d3.csv`, with population values parsed as numbers before rendering.

AI-generated description

Cars report