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)

f2183dd70b714f13b2efcc7d3c7177dc

Fork of Rendering data with react

0 stars1🌍 Public
EElliot Hill
Last edited Jul 8, 2021
Created on Jul 8, 2021

This visualization displays CSS named colors as a pie chart. It loads a CSV file of color names and hex values using `d3.csv`, then applies `pie` from d3 to arrange the data and `arc` to render each slice as an SVG path. The React app uses `useState` and `useEffect` to fetch data asynchronously and `ReactDOM.render` to draw the chart.

AI-generated description

Loading data with d3