Skip to main content
100%

React + D3 Class template

✓ Published0🌍 Public
LLaurens
Last edited Nov 22, 2020
Created on Sep 14, 2020

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 description

React + D3

Purpose

To provide an understandable React + D3 template. This version uses the old React style where a component is a class.

MIT Licensed

Similar vizzes