Fork of Rendering Data with React & D3
✓ Published0🌍 Public
This example visualizes United Nations population data from 2019 as a bar chart, with each country represented by a rectangle whose height is set by a D3 `scaleBand` and width by a `scaleLinear`. It uses React hooks (`useState`, `useEffect`) to load the CSV via D3’s `csv` utility and render SVG elements. The code also includes commented-out logic for manually computing arcs with D3’s `arc` without `d3.pie`, though the active chart does not use that path.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!
MIT Licensed