Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Data with React & D3

Public visualization

Rendering Data with React & D3

0 stars1🌍 Public
EEFezerKW
Last edited Sep 28, 2021
Created on Sep 28, 2021

This example uses React and D3 to render a radial burst visualization from a CSV of CSS named colors. The code loads data with D3’s `csv()` utility and displays it as a full-screen SVG. React’s `useState` and `useEffect` manage asynchronous data loading, while D3’s `pie()` and `arc()` compute the angular segments. Each slice is a `<path>` filled with the color’s RGB hex value. A “Loading…” placeholder appears until the data arrives, and the chart fills the browser window.

AI-generated description

A program that loads in some data using D3 uitilities, and uses React to render the data as a radial burst!

Comments

Sign in to join the discussion.

MIT Licensed