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

1
Ggsbeegnnord
Last edited Feb 24, 2022
Created on Feb 24, 2022

This example visualizes CSS named colors as a radial burst of pie slices, each slice filled with its corresponding color. It loads color data from a CSV file using `d3.csv`, then renders the chart as an SVG with React. The code uses `d3.pie` to compute arc angles and `d3.arc` to generate the path geometries, with React managing the component state and DOM updates. The dataset includes color names and hex values from the provided gist.

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