Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Making a bar chart

0 stars2🌍 Public
LLonwabo11
Last edited May 6, 2019
Created on May 3, 2019

A horizontal bar chart displays population estimates for ten countries from a CSV file, with bars scaled linearly by population and countries sorted alphabetically along the y-axis. The visualization uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render an SVG, loading data via `d3.csv` and converting population values to thousands. The chart includes margins, axes, and padded bars, with styling applied through an external stylesheet.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed