d3 circle practice
✓ Published0🌍 Public
Aadammak137
Last edited Jul 10, 2018
Created on Jul 7, 2018
A scatterplot displays 50 randomly generated data points as small black circles on an SVG canvas, with teal axes and tick labels. Clicking the prompt above the chart generates a new random dataset, triggering a transition where circles grow to magenta, scale based on their y-values via `d3.scaleSqrt`, and then shrink back to black after the axes update. The code uses D3 v4 with `d3.axisBottom`, `d3.axisLeft`, and `clipPath` to constrain drawing, animating position and appearance through `transition().duration()`.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed