Skip to main content
Public

Share visualization

Loading preview…

D3 Introduction : FACE

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

D3 Introduction : FACE

3
FFoysal Ahmed Emon
Last edited Feb 9, 2020
Created on Feb 8, 2020

This example demonstrates a stylized face constructed entirely with D3.js SVG primitives. It draws a yellow circular head, two black eyes, and a mouth path onto a gray background. The face uses fixed pixel coordinates derived from the SVG element’s width and height attributes. The code explicitly imports `select` and `arc` from D3 v5, employs `svg.append` for elements, and positions the mouth via the `arc` generator with specified inner and outer radii and angle extents, all within a React-rendered page.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed