Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering data with React and D3

Public visualization

Viewing a saved revision (read-only)

62b71fe3c8ac4e88ba62bff3bfa9afeb

Rendering data with React and D3

0 stars1🌍 Public
GGabriel
Last edited Apr 8, 2022
Created on Apr 8, 2022
Forked from Visualizing Data

This example renders a pie chart of CSS color names using React and D3, with each slice filled by the corresponding hexadecimal RGB value from a CSV dataset. The visualization shows the full distribution of named colors, with slices arranged around a center point at a fixed width and height. React manages the component state and asynchronous data loading, while D3’s `pie` and `arc` functions compute the geometry and generate SVG path elements. The SVG output is rendered directly through React’s declarative JSX syntax.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.