Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Fork of Rendering Data with React & D3

0 stars0๐ŸŒ Public
VVictor Henriquez
Last edited Sep 22, 2022
Created on Sep 22, 2022

This example displays a pie chart of CSS named colors, where each slice is filled with the exact color it represents. Using D3 utilities `d3.csv`, `d3.pie`, and `d3.arc`, it loads color data from a GitHub gist and computes the pie geometry. React 16 with hooks manages the asynchronous data loading and renders the resulting SVG paths. The visualization shows all CSS colors arranged in a full circle around a central point.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed