Skip to main content
100%

Fork of Rendering data with React

✓ Published1🌍 Public
BBurak Senel
Last edited Mar 16, 2021
Created on Mar 16, 2021

This example visualizes the CSS named colors as a pie chart, with each slice filled by the corresponding color’s RGB hex value. The visualization loads CSV data from a GitHub gist using `d3.csv`, then computes the pie layout with `d3.pie` and renders the arcs using `d3.arc`. Built with React, the component uses `useState` and `useEffect` to asynchronously fetch and store the data, displaying a “Loading...” message until the data arrives. The chart is drawn as an SVG, with each path element generated from the pie data.

AI-generated description

A program to load CSV data

MIT Licensed

Similar vizzes