Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of rendering data with react

Public visualization

Viewing a saved revision (read-only)

d7f75cbe267b4f86974ca962ef3b195e

Fork of rendering data with react

0 stars0🌍 Public
Nnexus1058
Last edited Jan 30, 2021
Created on Jan 29, 2021

This example visualizes the CSS named colors as a pie chart, with each slice filled by the color it represents. The code loads color data from a GitHub gist using `d3.csv`, then computes the pie layout with `d3.pie` and renders the arcs via `d3.arc` as SVG paths. React manages the loading state and renders the chart, displaying a loading message until the data arrives.

AI-generated description

a program that loads in same data about css named colors using d3 utilities and uses React state to render the data