🌍 Public
Viewing a saved revision (read-only)
f61a487bfe974b33bcfd9f07b2174ced
Interaction with React
This example demonstrates how to integrate React with D3 for data visualization. It shows a React component that fetches and parses a CSV file containing named CSS colors from a GitHub gist, using the Fetch API and d3.csvParse. The code renders a simple React app with a heading, while the fetched data’s columns and length are stored in a Promise. The visualization uses React 16.9 and D3 v5, loaded via UMD scripts, with ReactDOM rendering the component into the DOM.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.