Skip to main content
100%

Fork of Fork of Rendering Data with React

✓ Published1🌍 Public
AAnthony Zornig
Last edited Oct 3, 2021
Created on Oct 3, 2021

This bar chart displays the top 10 countries by projected 2020 population from a CSV dataset. It uses React’s `useState` and `useEffect` hooks to fetch and parse the data with `d3.csv`, then maps the data to SVG rectangles. D3’s `scaleBand` positions bars on the y-axis, while `scaleLinear` scales the x-axis based on population values from `d3.max`. The visualization is rendered using `ReactDOM`, producing generic colored rectangles without labels or axes.

AI-generated description

A program that loads in some [data about css named Colors] https://gist.github.com/curran/b236990081a24761f7000567094914e0 using D3 utilities, and uses React statr to render the Data.

MIT Licensed

Similar vizzes