Skip to main content
100%

Data Visualization and Infographics with D3, Module 2, Exercise 1

✓ Published0🌍 Public
SSassOnTheRoad
Last edited Mar 23, 2015
Created on Mar 23, 2015

This example displays a single static blue circle centered within a small 50 by 50 SVG canvas, using a gray outline and a two-pixel stroke. It serves as a minimal demonstration of primitive SVG shape construction, where the circle is positioned via explicit `cx` and `cy` attributes and sized with an `r` radius. The visualization uses the standard D3.js library, though the code relies directly on raw SVG elements rather than D3-specific data joins or scales. The rendering approach is entirely declarative, showing how a basic geometric mark can be encoded directly in an HTML file without external data sources or interactive behavior.

AI-generated description

Similar vizzes