Skip to main content
100%

Lets make a face using D3.js

✓ Published0🌍 Public
SSanyog Yadav
Last edited Nov 24, 2019
Created on Nov 24, 2019

A smiling face is drawn with SVG shapes, including a yellow circle for the head, black eyes, rectangular eyebrows, and an arc-based mouth. The left eyebrow animates upward over two seconds using a `transition` on its `y` attribute. Built with D3 v5, the example uses `select`, `arc`, and chained transitions, positioning elements via a centered group with `translate`. All elements are rendered in an SVG canvas, with geometry defined from the viewport’s width and height.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes