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 stars0🌍 Public
Ssleyus
Last edited Nov 8, 2019
Created on Nov 8, 2019

This example renders a radial burst visualization of CSS named colors using React for SVG generation and D3 utilities for data loading and arc computation. It loads color data via `d3.csv`, then uses `d3.pie` and `d3.arc` to create equal-width slices, each filled with its corresponding hex value from the dataset. React’s `useState` and `useEffect` manage asynchronous data fetching, displaying a loading state until the CSV arrives. The final output is a circular color wheel centered on an SVG canvas.

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