🌍 Public
Fork of Rendering Data with React & D3
This example shows a bar chart of the ten most populous countries in 2020, using a horizontal layout where bar length encodes population size. It loads data from a CSV file containing UN population estimates, parses the population column as a number, and filters to the first ten rows. React manages the component state, while D3’s `csv` loader, `scaleBand` for country categories, and `scaleLinear` for population values determine the SVG rectangle positions and dimensions.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React to rendere the data.
MIT Licensed
Comments
Sign in to join the discussion.