Skip to main content
100%

Rendering Data with React & D3

✓ Published0🌍 Public
PPiotr Paszek
Last edited Mar 6, 2021
Created on Mar 6, 2021

This example demonstrates loading CSS named colors data from a GitHub Gist and rendering it with React, using D3 utilities for data parsing and arc geometry. The code uses `d3.csv` to fetch and parse the dataset, then passes it to React state via `useState` and `useEffect` hooks. A D3 arc generator creates pie slices with an inner radius of zero and outer radius equal to the viewport width. The application displays a loading message before the data arrives.

AI-generated description

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

MIT Licensed

Similar vizzes