Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sean Thornton Circles with D3

Public visualization

Viewing a saved revision (read-only)

d47e83686c3b456296f2746a61cfb972

Sean Thornton Circles with D3

0 stars0🌍 Public
SSean Thornton
Last edited Aug 25, 2025
Created on Aug 25, 2025
Forked from Circles with D3

This example shows a responsive smiley face built entirely from circles positioned to form the eyes, nose, mouth, and face outline. It uses D3’s `select` and data joins (`join('circle')`) to render seven SVG circles, with coordinates and radii computed relative to the container’s `clientWidth` and `clientHeight`. The code sets each circle’s fill color and opacity directly from a static data array, and the SVG background uses a pale green tone.

AI-generated description