Skip to main content
Public

Share visualization

Loading preview…

Venu Gopal Raju Petha

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Venu Gopal Raju Petha

0
Ppethavenu
Last edited Feb 23, 2023
Created on Feb 22, 2023
Forked from 11650230

This example uses D3.js to construct an animated smiley face entirely from SVG shapes. It appends circles and lines to a central group, positioning the head, ears, eyes, pupils, nose, and whiskers. While the code creates the faces’ static components, a linked video demonstrates the interactive eyebrow movement. The visualization relies on fundamental D3 selection and DOM manipulation methods, such as `select`, `append`, and `attr`, within a 960×500 SVG canvas.

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