Skip to main content
Public

Share visualization

Loading preview…

Fork of Rendering Data with React & D3 Again

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 Again

1
Tthomasjungcoe
Last edited Mar 12, 2021
Created on Mar 11, 2021

This visualization displays all CSS named colors as a circular pie chart where each color occupies an equal slice. The application loads color data from a CSV file using `d3.csv`, then uses React's `useState` and `useEffect` hooks to manage the asynchronous data fetching and rendering. The chart is constructed with `d3.pie` and `d3.arc`, generating SVG paths filled with each color's corresponding hex value, centered within a 960 by 500 viewport.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

Comments

Sign in to join the discussion.

MIT Licensed