Skip to main content
100%

d3 random circle practice

✓ Published0🌍 Public
Aadammak137
Last edited Jul 8, 2018
Created on Jul 8, 2018

This example maps an array of coordinate pairs to an SVG scatterplot, encoding each point as a circle whose radius reflects the y-value. The code uses d3.scaleLinear for the x and y axes, d3.scaleSqrt for the radius, and d3.axisBottom and d3.axisLeft to draw teal axes. It renders circles and red coordinate labels, then animates a one-second transition that recolors each circle teal and shrinks its radius to 3. The data is hardcoded in a JavaScript array.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/adammak137/'>adammak137</a>'s block: <a href='http://bl.ocks.org/adammak137/b55abfa6bad0ce96b9637070d07bd832'>d3 random circle practice</a>

mit Licensed

Similar vizzes