Skip to main content
100%

Baby's first bar chart

✓ Published1🌍 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.

MIT Licensed

Similar vizzes