Skip to main content
100%

simple scatterplot

✓ Published0🌍 Public
SScarlettHui
Last edited Feb 16, 2018
Created on Feb 16, 2018

This example shows a simple scatterplot of seven data points, each defined by x and y coordinates on a fixed 960-by-500 SVG canvas. The visualization uses D3 v4 to create the SVG container and relies on the `d3.select` and `attr` methods to set its dimensions. The data is hardcoded as an array of JavaScript objects, and while the code preps the SVG, it does not yet plot any circles or axes, leaving the points unrendered. The body is styled with zero margins to make the chart full-width.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/andrewdblevins/'>andrewdblevins</a>'s block: <a href='http://bl.ocks.org/andrewdblevins/6af5dfd19ac090e3f2305e5b01035c4c'>simple scatterplot</a>

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/9bc9c1c2174570aa6e0b002639d24a53'>simple scatterplot</a>

mit Licensed

Similar vizzes