Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Kkevin0903
Last edited Oct 11, 2019
Created on Oct 10, 2019

This example draws a simple smiling face using SVG shapes. It uses D3.js to create a yellow circle for the head and two black circles for the eyes, all with hard-coded positions. The code selects the existing SVG element, calculates width and height from its attributes, and appends circles using selections and the `circle` element API from D3 v5.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes