🌍 Public
Viewing a saved revision (read-only)
2f3a1325584c4fbfb7a0d0d4d60a0108
React + D3 Class template
A React class component wraps a D3.js scatterplot that visualizes student eye colors from a JSON dataset. The plot initially renders circles at raw red and green color values, then transitions them to scaled positions using `d3.scaleLinear` and animates their radius based on blue intensity. The code filters and parses hex color data into RGB components with `d3.json`, and uses SVG circles with `transition.attr` for the animated scaling.
AI-generated descriptionReact + D3
Purpose
To provide an understandable React + D3 template. This version uses the old React style where a component is a class.