Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Fork of Rendering Data with React & D3

0 stars0🌍 Public
VVenkat
Last edited Sep 15, 2021
Created on Sep 15, 2021

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 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!

Comments

Sign in to join the discussion.

MIT Licensed