Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering Data with React & D3

Public visualization

Viewing a saved revision (read-only)

769a60b0cb634d5aba597f89d27aa662

Rendering Data with React & D3

0 stars0🌍 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!