D3: Scatterplot!
This interactive scatterplot displays 50 random data points on Cartesian axes, with each circle colored blue or red depending on whether its x-coordinate falls in the left or right half of the plot. Clicking the “Randomize” button generates a fresh dataset and smoothly animates the points, axes, and color updates over two seconds. The visualization is built with D3 3.5.5, using the `d3.scale.linear`, `d3.svg.axis`, and `transition().duration(2000)` APIs, and renders entirely as SVG. The code derives from Scott Murray’s examples, forked from earlier gists by anonymous and jalapic.
AI-generated descriptionSimple Scatter Transition
This is tweaked code building upon the examples given by Scott Murray <a href="http://www.alignedleft.com">@alignedleft</a>
forked from <a href='http://bl.ocks.org/jalapic/'>jalapic</a>'s block: <a href='http://bl.ocks.org/jalapic/141a6f2c8a37fe01ed53'>Simple scatter transition</a>
forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/93738eab0a632fc63855770d4bff2d70'>Simple scatter transition</a>