Skip to main content
100%

Barchart

✓ Published1🌍 Public
TTousifAhamed
Last edited Sep 19, 2021
Created on Sep 16, 2021

This example shows the ten most populous countries in 2020 as horizontal bars, with bar length proportional to population. It uses React hooks to fetch and parse the United Nations population CSV via D3’s `csv` loader, then renders SVG rectangles scaled by `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. The chart updates once the data arrives, displaying a loading message before rendering.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities and uses React to render the data as a radial burst!

MIT Licensed

Similar vizzes