Skip to main content
Public

Share visualization

Send this visualization to others.

Fork of Fork of Let's make a face with D3.js!

Public visualization

By farhaanqazi on VizHub

LinkedIn caption

LinkedIn cannot prefill the post text. Copy the caption, then paste it in LinkedIn. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code

The embed preserves the visualization's visibility and project dataset permissions.

Download & exportHTML, source ZIP and authorized project data

Source ZIP contains editable visualization files; it does not include project datasets. Standalone HTML is available where authorized and packages readable referenced data for offline use. Dataset ZIP requires project read permission.

Standalone HTMLSource ZIP
Publishing & handoffCopy a client maintenance summary

Includes the canonical link, visibility, and available export formats. Confirm dataset attribution, licensing and maintenance responsibilities with the publisher.

Fork of Fork of Let's make a face with D3.js!

0 stars1Public
FFarhaan Qazi
Last edited Feb 19, 2023
Created on Feb 19, 2023

A yellow smiley face built with SVG and D3.js v5 demonstrates basic DOM manipulation and animation. The face consists of circles for eyes, rectangles for eyebrows, and a path for the mouth, all positioned using D3's selection and attribute methods. The eyebrows animate upward and back down over two seconds using chained `transition` calls with `duration(2000)`. The code imports `select` and `arc` from D3, uses an SVG canvas of 960x500 pixels, and centers the face with a translated group element.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed