Viewing a saved revision (read-only)
42a77f4228a7479b994a96a287cf9c94
Circles with D3
This example shows a set of seven colorful circles scattered across an SVG canvas, each with a distinct size, position, and fill color at 70% opacity. It demonstrates core D3.js v7 concepts including data binding, the General Update Pattern, and method chaining via `select`, `selectAll`, `data`, and `join` to render `circle` elements. The visualization uses static, data-driven coordinates and colors defined in a JavaScript array, rendered through an HTML import map loading D3 from a CDN. The code also showcases the `join` API for creating SVG circles within a container sized to the viewport.
AI-generated descriptionA blank starter for building with D3, using the VizHub 3 runtime with hot reloading.