Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Visualizing Data with React & D3

Public visualization

Viewing a saved revision (read-only)

b2feb40c0aff4657a6545948d7f61023

Visualizing Data with React & D3

0 stars0🌍 Public
AAlvarocar
Last edited Jul 18, 2021
Created on Jul 18, 2021

This example presents a color wheel visualization of CSS named colors, split into individual arc segments representing each color. Built with React and D3 v5, it loads data from a CSV file using D3's `csv` utility and manages the data with React's `useState` and `useEffect` hooks. Each colored arc is rendered as an SVG path using D3's `arc` generator, with tooltips displaying the color keyword. The visualization maps each color to a proportional slice of the circle, providing an overview of the available named colors.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.