Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Fork of Rendering Data with React & D3

0 stars1🌍 Public
Sswopnil
Last edited Dec 15, 2023
Created on Dec 15, 2023

This example visualizes the 148 CSS named colors as a radial burst, with each color represented by a wedge arranged around a central point. The visualization uses React to manage the application state and render the SVG elements, while D3 utilities handle both data loading and geometric computations. The `d3.csv` function fetches the color data from a remote URL, and the `d3.pie` function calculates the arc segments. Each wedge is drawn as an SVG `<path>` element, filled with the corresponding color's RGB hex value and positioned using the `d3.arc` helper with an outer radius equal to the canvas width.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

Comments

Sign in to join the discussion.

MIT Licensed