Skip to main content
Public

Share visualization

Loading preview…

Fork of Rendering Data with React & D3

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Rendering Data with React & D3

0
Mmengdong
Last edited Jul 18, 2021
Created on Jul 18, 2021

This example visualizes all CSS named colors as a radial burst of wedge-shaped arcs. Each arc represents one color from a CSV dataset, filled with its corresponding hex value. The code combines React hooks (`useState`, `useEffect`) with D3 utilities `csv`, `arc`, and `pie` to load and transform the data, then renders the SVG paths inside a React component. The visualization uses a fixed outer radius and centers the pie at the middle of 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