Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Ssam-leb
Last edited Jul 3, 2020
Created on Jul 3, 2020

A playful SVG face is drawn using D3.js v5, with two colored circles serving as eyes placed on a blank canvas. The example demonstrates basic shape creation and group transformations, using `d3.select` to manipulate the SVG and `svg.append('g')` to organize elements. Circles are added with the `append('circle')` method, positioned via `translate` transforms, and styled with fill and stroke attributes. The code imports `select` and `arc` from the D3 library, though only `select` is actively used to construct this simple, static composition.

AI-generated description
MIT Licensed

Similar vizzes