Skip to main content
100%

Making a barchart

✓ Published0🌍 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.

MIT Licensed

Similar vizzes