Skip to main content
100%

More basics of JS

✓ Published0🌍 Public
JJunyanL
Last edited Jan 15, 2020
Created on Jan 12, 2020
Forked from React Starter

Rendering five circles in an SVG via a React-started D3 v5 data join, this example demonstrates enter, update, and exit selections over time. It uses `d3.select` to manage the SVG, `d3.range` to generate an array of objects, and `d3.scaleOrdinal` to map domain values like "baseball" and "cube" to fill colors. After two timed `setTimeout` calls, one circle exits with a thick black stroke while another updates its fill from white to dark green.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes