Fork of React + D3 Hooks template
✓ Published0🌍 Public
A scatterplot encodes student eye color as a 3D RGB color space, with circle position mapping red and green values and radius mapping blue intensity. The React component fetches JSON data from a GitHub gist, validates hex color codes, and renders SVG circles that animate through transitions with bounce easing. The visualization uses React hooks with a D3 v5 selection and scale API, demonstrating integration of the two libraries through a wrapping SVG container component.
AI-generated descriptionReact + D3
Purpose
To provide an understandable React + D3 template. This version uses the new React hooks.
Trying to adapt using this
Questions
- How can a wrapped element get the id of the wrapper element?
- How does it work when we want to update the graph
MIT Licensed