Skip to main content
100%

Visualizing Data

✓ Published1🌍 Public
GGabriel
Last edited Apr 8, 2022
Created on Apr 8, 2022

This example visualizes the full set of named CSS colors from a CSV file, rendering each as a horizontal strip that fills the screen width. The data is loaded asynchronously from a GitHub gist using `d3.csv`, then mapped into React `div` elements with inline `style` attributes applying the color from the `'valores hex RGB'` column. A `pre` element displays a "Loading..." message until the data arrives, after which the strips appear stacked vertically, forming a continuous color spectrum. The implementation combines React 18 for the user interface, D3 v7 for CSV parsing, and plain CSS for layout.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes