Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart with React and D3

Public visualization

Bar Chart with React and D3

0 stars1🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed