Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

60583d58a0204bfeb7695fa8587ae680

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
BBjoernujjwb
Last edited Jan 2, 2023
Created on Jan 2, 2023

This example visualizes the CSS Named Colors dataset by rendering each color’s name in a large, styled <pre> element. It demonstrates loading CSV data with D3 v5’s `d3.csv` and parsing the rows to extract color names and hex values. The code uses a React framework to manage the component state, while D3 handles the asynchronous data fetching. On load, the parsed entries are displayed sequentially, with the text color set to match each hexadecimal value.

AI-generated description