Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Pphpedro
Last edited Aug 20, 2019
Created on Aug 20, 2019
Forked from Hello VizHub

This example uses D3.js to draw a simple cartoon face in an SVG canvas. It first creates a large yellow circle for the head, then positions two smaller circles as eyes, and finally adds a line for the mouth. The code relies on D3.js version 5 and directly appends SVG shapes using methods like `svg.append('circle')` and `svg.append('line')`, with attributes set via `.attr()`. Dimensions are derived from the SVG element's width and height attributes.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes