Skip to main content
100%

Refactored Bar Chart

✓ Published2🌍 Public
Nnexus1058
Last edited Mar 4, 2021
Created on Feb 21, 2021

This example shows a horizontal bar chart of the 12 most populous countries using UN population data from 2019. React renders SVG bars, with D3’s `scaleBand` and `scaleLinear` mapping country names and population values. Custom `AxisBottom` and `AxisLeft` components generate tick marks, while `Marks` draws the rectangles. The chart loads CSV data via `d3.csv` and uses React hooks for state management.

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