🌍 Public
Viewing a saved revision (read-only)
4eb9ffcc987b47ea8fed2b44256ca88a
Fork of 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 descriptionA program that uses react and d3 to visulize the data