Skip to main content
100%

d3js workshop - circles 2

✓ Published0🌍 Public
LLelandCurtis
Last edited Oct 19, 2017
Created on Oct 19, 2017

Three circles of different data values appear in an SVG canvas, then animate by shifting downward and turning red before returning to their original positions on mouseover. The example demonstrates basic D3.v3 selection, data binding, and transition APIs, including `transition().delay().duration()`. Interactive event handling is implemented through `.on("mouseover")`, which changes circle styling and radius. The code initializes an SVG element with `d3.select('body').append('svg')` and uses a data array `[10, 20, 30]` to map circle positions.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/mostaphaRoudsari/'>mostaphaRoudsari</a>'s block: <a href='http://bl.ocks.org/mostaphaRoudsari/294888109e025d770c8a680a730ef04e'>04_workshop_interactive circles</a>

mit Licensed

Similar vizzes