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
JJoachim Klug
Last edited Apr 19, 2021
Created on Apr 19, 2021

This visualization displays all CSS named colors as a radial pie chart, with each slice colored according to its corresponding hex value. The code uses React hooks (useState, useEffect) to fetch and store the data from a CSV file listing CSS color names, then applies D3’s pie and arc generators to compute the layout. The resulting SVG paths are rendered by React, with each color’s name shown as a tooltip via a title element. The chart uses an outer radius spanning the full width of the viewport.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed