Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars1🌍 Public
Sshreyagoddu
Last edited Aug 15, 2020
Created on Aug 15, 2020

This bar chart displays the populations of the ten most populous countries, using horizontal bars arranged in descending order. The visualization uses D3 v5 within a React framework, employing `scaleLinear` for the x-axis and `scaleBand` for the y-axis. The code loads data from a CSV file via `d3.csv`, renders SVG rectangles, and includes `axisLeft` and `axisBottom` for labeled axes. The chart emphasizes the stark population differences, with China and India leading by a significant margin over the United States.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed