Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React

Public visualization

Viewing a saved revision (read-only)

f75a935e857f4b329880053fae0d260e

Fork of Rendering Data with React

0 stars0🌍 Public
Aamiteshwarr
Last edited Jan 3, 2023
Created on Jan 2, 2023

This example demonstrates how to render a dataset of CSS named colors as a half-donut chart using React and D3 v7. The visualization loads CSV data from a GitHub gist, displaying each color as a pie arc path filled with its corresponding RGB hex value. The code uses React hooks (useState, useEffect) to fetch and store the data, d3.csv for parsing, and d3.arc for generating the path geometry, with all output rendered as SVG elements within a React component.

AI-generated description

A demonstration of how to start using D3 version 6.