Skip to main content
100%

fresh block

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

This example shows three fixed circles positioned diagonally across an SVG canvas, each colored by its data value. The visualization uses D3.js to bind an array of numbers to circle elements, setting their horizontal and vertical centers from the data and giving them a constant radius. The `style` method applies a fill color through a conditional function that maps the values 30, 70, and 110 to green, purple, and red, respectively. The SVG container is created with a fixed width and height of 200 pixels, and the circles are appended using D3’s data join pattern.

AI-generated description

Built with blockbuilder.org

Similar vizzes