Skip to main content
100%

Fork of Fork of Rendering Data with React & D3

✓ Published0🌍 Public
PPiotr Paszek
Last edited Mar 6, 2021
Created on Mar 6, 2021

This interactive visualization displays population data for various countries as a horizontal bar chart rendered in SVG. The React component uses hooks like `useState` and `useEffect` to asynchronously load CSV data from a remote gist via `d3.csv`, then maps each country to a `rect` element. The chart employs `d3.scaleBand` for the y-axis and `d3.scaleLinear` with `d3.max` for the x-axis scaling. ReactDOM renders the dynamic SVG directly into the page, updating after the data fetch completes.

AI-generated description

A 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

Similar vizzes