Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of load data

Public visualization

Viewing a saved revision (read-only)

4eb9ffcc987b47ea8fed2b44256ca88a

Fork of load data

0 stars1🌍 Public
Sshimos12468
Last edited Jun 2, 2021
Created on Jun 2, 2021
Forked from load data

This visualization displays a color wheel constructed from a CSV dataset of named CSS colors, with each color represented as a slice of a pie chart. The code uses React hooks (useState and useEffect) to asynchronously load data via d3.csv, then maps it into arcs using d3.pie and d3.arc. The computed SVG paths are rendered inside React’s virtual DOM, with a d3 pie generator assigning equal value to each row. The chart initially shows a "Loading..." message until the external dataset arrives.

AI-generated description

A program that uses react and d3 to visulize the data