Skip to main content
100%

Rendering data with React

✓ Published1🌍 Public
Jjiro2017
Last edited Sep 18, 2021
Created on Sep 18, 2021

This example shows a radial burst visualization of CSS named colors, with each color displayed as a wedge in a full circle. It loads color data from a CSV file using the `csv` function from d3.v7, then transforms it with the d3 `pie` generator and renders it as SVG paths using React components. The `arc` generator sets the inner radius to zero and the outer radius to the full width, while React’s `useState` and `useEffect` hooks manage the asynchronous data loading. Each path’s fill property is set from the `RGB hex value` column in the dataset.

AI-generated description

A program that loads in some data data about CSS named colors with D3 utilities, and uses React to render the data as a radial burst.

MIT Licensed

Similar vizzes