Skip to main content
100%

Rendering Data with React

✓ Published1🌍 Public
Jjwlam83
Last edited Jan 9, 2022
Created on Jan 9, 2022

This example displays all CSS named colors as a circular color wheel, with each color occupying a wedge-shaped slice. Using React hooks to load and store the dataset, the visualization maps the data to SVG paths computed with D3’s `arc` and `pie` functions. The pie chart starts at the 12 o’clock position and renders each color’s hex value as its fill. The code references the CSS colors CSV from a GitHub gist and sets the outer radius to the full chart width.

AI-generated description

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

MIT Licensed

Similar vizzes