Skip to main content
100%

Pathetic Bar Chart

✓ Published1🌍 Public
11godfrey
Last edited Mar 5, 2023
Created on Mar 5, 2023

This example displays a horizontal bar chart of the top ten countries by 2020 population, loading data from a CSV via `d3.csv`. React manages the component state and renders SVG `<rect>` elements, while D3’s `scaleBand` and `scaleLinear` map country names and population values to screen coordinates. The chart updates once the asynchronous data fetch completes, with a "Loading..." fallback displayed until then.

AI-generated description

A program that loads in some [data about CSS named colors].(https://gist.github.com/1godfrey/b75a398c6dee927066e4224e9b633287) using D3 utilities, and uses React to render the data as a radial burst!

MIT Licensed

Similar vizzes