Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Baby's first bar chart

Public visualization

Baby's first bar chart

0 stars1🌍 Public
MMarko Puza
Last edited Jul 16, 2019
Created on Jul 16, 2019
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the world’s most populous countries, scaled from a CSV file so that population values are displayed in thousands. It uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to position bars and axes, with SVG `rectangles` styled in steel blue. The data is loaded via `d3.csv` and multiplied by a constant, while margins are applied to an inner chart group for readable labels and a clean layout.

AI-generated description

Tutorial.

Comments

Sign in to join the discussion.

MIT Licensed