Skip to main content
100%

fresh block

✓ Published0🌍 Public
BBrandonStroud
Last edited Feb 23, 2016
Created on Feb 23, 2016

This example shows three circles positioned diagonally across an SVG canvas, each colored by its data value. The visualization uses D3.js version 3.5.5 to bind an array of numbers to circle elements and map each value to screen coordinates. The code selects the SVG container, appends circle elements, and sets their cx and cy attributes directly from the data, while fill colors are assigned conditionally: green for 30, purple for 70, and red for 110. The rendering approach relies on D3’s data join and attribute manipulation, with no axes or scales involved.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/BrandonStroud/'>BrandonStroud</a>'s block: <a href='http://bl.ocks.org/BrandonStroud/ccd1b2d7ce54e59e455e'>fresh block</a>

Similar vizzes