Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a barchart

Public visualization

Viewing a saved revision (read-only)

7d7319a2611a4431ba27bc9f54f90bf3

Making a barchart

0 stars0🌍 Public
LLucasj01UK
Last edited May 20, 2020
Created on May 20, 2020
Forked from Customizing Axes

This example shows a horizontal bar chart of country populations, with bars sorted by descending population and labeled along the left axis. The visualization uses D3 v5 within a React framework, rendering to SVG. Population values from the included `data.csv` are parsed and scaled using `scaleLinear` and `scaleBand`, with axes generated via `axisLeft` and `axisBottom`. Bars are appended as SVG rectangles, and styling is applied through CSS.

AI-generated description

A bare minimum HTML page.

See also React Starter.