Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of visualizing data with react and d3

Public visualization

Fork of Fork of visualizing data with react and d3

0 stars1🌍 Public
Mmeghshah612
Last edited Feb 19, 2022
Created on Feb 19, 2022

This example visualizes CSS color names by rendering each color as a horizontal strip, stacked vertically to form a full-width gradient spectrum. The data is loaded from a CSV file using `d3.csv`, and React manages the state and rendering of the strips via inline styles. The visualization uses React 16.9 and D3 v7, with the SVG output commented out in favor of HTML divs. Each strip’s background color corresponds to the `RGB hex value` field from the dataset.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed