Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar Chart

Public visualization

Viewing a saved revision (read-only)

32e200b42756427b95da6c8904da20a3

Making a bar Chart

0 stars2🌍 Public
Ddamankwah
Last edited Apr 7, 2020
Created on Apr 7, 2020

This example displays a horizontal bar chart of country populations, with bars scaled proportionally to population values and country names on the vertical axis. It uses D3 v5 within a React-like structure, loading data from a local CSV file and rendering to SVG. The code employs D3’s `scaleLinear` for the numeric axis, `scaleBand` for categorical spacing, and `axisBottom` and `axisLeft` to generate tick marks and labels.

AI-generated description

A bare minimum HTML page.

See also React Starter.