Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a BarChart

Public visualization

Making a BarChart

0 stars2🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed