🌍 Public
Bar Chart with React and D3
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 descriptionA 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
Comments
Sign in to join the discussion.