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
DdapperAuteur
Last edited Mar 14, 2021
Created on Mar 14, 2021

This radial burst visualization displays all 148 CSS named colors as equal-sized slices arranged in a circle, with each slice filled by its corresponding RGB hex value. The data is loaded from a CSV file using D3’s `csv` utility, while React’s `useState` and `useEffect` hooks manage the asynchronous fetch. D3’s `pie` and `arc` functions compute the slice geometries, rendered as SVG `<path>` elements within a React component. The example demonstrates a hybrid approach where D3 handles data processing and shape generation while React manages the component lifecycle and rendering.

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