Skip to main content
100%

Rendering Data with React & D3

✓ Published0🌍 Public
SSam
Last edited Apr 26, 2021
Created on Apr 26, 2021

This example displays a radial burst of CSS named colors, where each color is rendered as a slice of a pie chart. The visualization loads data from a CSV file using D3’s `csv` utility, then passes it to React, which uses `pie()` and `arc` from D3 to compute the angular geometry and draw SVG `<path>` elements. The color of each slice is derived from the `RGB hex value` column in the data, with the SVG output sized to a fixed 960 by 500 viewport.

AI-generated description

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

MIT Licensed

Similar vizzes