Skip to main content
Public

Share visualization

Loading preview…

Let's make a face with D3.js!

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

Let's make a face with D3.js!

0
KKCharoenkwan
Last edited Mar 3, 2023
Created on Mar 3, 2023

A face constructed from animated SVG line elements demonstrates how D3.js and raw SVG markup can build playful, expressive visual compositions. The example relies on D3.js v3 to generate and animate coordinated paths, with each line styled through CSS classes and applied stroke properties. The face emerges from a set of curves, using SVG’s `<path>` elements, coordinated via a force-directed simulation, while the overall canvas is set within an `index.html` file of 960x500 pixels. The rendering happens entirely in the browser as an SVG, with the `d3` script embedded directly on the page.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed