Skip to main content
100%

Rendering Data with React

✓ Published2🌍 Public
SStoniee-duplicate
Last edited Apr 7, 2021
Created on Apr 7, 2021
Forked from HTML Starter

This example renders a colorful SVG pie chart from a CSV of CSS named colors, fetched from a GitHub gist via `d3.csv`. It demonstrates a React component that loads asynchronous data with `useState` and `useEffect`, then maps each color to a `path` element using the `d3.arc()` generator. The arcs are drawn with fixed start and end angles, creating a fan-like burst around the chart’s center. React 16.9 and D3 v5 are loaded from CDNs, with the visualization rendered dynamically on user interaction.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes