Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
AArthur Welf
Last edited Apr 29, 2019
Created on Apr 28, 2019

This example demonstrates how to build a simple yellow smiley face using D3.js, starting with basic SVG shapes like circles for the face and eyes. The code uses D3’s `select` and `append` methods to create and style elements within an SVG canvas, setting attributes such as radius, position, and fill color step by step. While the README mentions moving eyebrows, the provided code only renders the static face, relying on D3 v5’s core selection and attribute manipulation APIs to construct the visual directly from JavaScript.

AI-generated description

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

MIT Licensed

Similar vizzes