Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
DDayalghosh
Last edited Jul 15, 2019
Created on Jul 15, 2019

This example demonstrates how to create a smiley face using D3.js, with the face displayed as a yellow circle centered in an SVG canvas. The code uses D3 selections and the `append` method to add SVG elements, and it calculates the circle’s position and size from the SVG’s width and height attributes. Though the README mentions moving eyebrows, the visible code only draws the static face, relying on D3 v5’s `select` and attribute setters for rendering.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes