Skip to main content
100%

Making a BarChart

✓ Published2🌍 Public
Ggabrielribeirob
Last edited Nov 22, 2021
Created on Aug 31, 2021
Forked from Lets Make a Face

This example shows a horizontal bar chart of population by country, using a CSV dataset for 10 nations. It builds an SVG chart with D3 v7, mapping population to bar width via `scaleLinear` and country names to vertical bands with `scaleBand`. The code uses `axisLeft` and `axisBottom` for labeled axes, and appends `rect` elements for each row. Styling applies a steelblue fill to the bars.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes