Skip to main content
100%

Fork of Rendering Data with React

✓ Published0🌍 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.

MIT Licensed

Similar vizzes