Skip to main content
100%

Visualising Data With React

✓ Published1🌍 Public
JJames Rhodes
Last edited Feb 13, 2022
Created on Feb 13, 2022

A colorful pie chart displays the full set of MDN CSS color names as equal-width slices, each filled with its corresponding RGB hex value. Built with React and D3 v7, the app fetches CSV data via `d3.csv` and computes the pie layout with `d3.pie` and `d3.arc`, rendering SVG `<path>` elements inside a React component using hooks for state and effects.

AI-generated description

Example of visualising data using React and D3

data MDN: CSS Colors

MIT Licensed

Similar vizzes