Skip to main content
100%

Bar Chart with React and D3

✓ Published1🌍 Public
MManuel Bauer
Last edited Aug 30, 2022
Created on Aug 30, 2022

A horizontal bar chart displays population data for ten countries, rendered as SVG rectangles. Built with React components and D3 scales, `scaleLinear` maps population values to bar widths while `scaleBand` positions categorical country labels on the y-axis. D3's `csv` loader fetches the dataset from a GitHub-hosted CSV file. Custom `LineTick` and `TextTick` components generate the axis ticks and labels.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes