🌍 Public
Viewing a saved revision (read-only)
b3b18e640dd4435eb988c162d912843b
Making a face
This example shows a single circle positioned on an SVG canvas, its center placed at coordinates (200, 100) with a radius of 200 pixels. The code uses D3 v6’s `select` method to grab the SVG element, then appends a circle and sets its visual attributes with `attr`. The visualization demonstrates the fundamental D3 pattern of chaining selections and attribute assignments to generate SVG shapes.
AI-generated descriptionA demonstration of how to start using D3 version 6.