Skip to main content
100%

React Starter

✓ Published0🌍 Public
CChristian Magelssen
Last edited Oct 29, 2020
Created on Oct 29, 2020
Forked from React Starter

This example demonstrates a React component that renders six red circles of increasing size onto an SVG element. The circles are positioned horizontally, with their radius and x-coordinates derived from a static data array. The code uses React hooks (`useRef` and `useEffect`) to access the SVG node and the D3 v5 `select` API to perform a data join, appending circle elements with attributes for fill, radius, and position. The rendering target is an SVG background styled with light grey.

AI-generated description
  1. d3 hooks series
MIT Licensed

Similar vizzes