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
Ggilbster
Last edited Dec 26, 2019
Created on Dec 26, 2019

This example shows a horizontal bar chart of the world’s ten most populous countries, with each bar’s length proportional to population in thousands. The React app uses D3 v5’s `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load data and render axes, while SVG `rect` elements are bound to the data via selections.

AI-generated description

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed