Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Create a face with d3.js!

Public visualization

Viewing a saved revision (read-only)

882a266ad19346d0b2c13ab5ef2ecbdc

Fork of Create a face with d3.js!

0 stars0🌍 Public
AAh Min Hui
Last edited Oct 10, 2023
Created on Oct 10, 2023

A simple SVG face rendered with D3.js, composed of a yellow circle for the head, two black circles for eyes, and an arc-shaped mouth. The face is centered within an 800 by 800 SVG canvas using D3 selections and attribute setters. The mouth is created with the d3.arc() function, specifying inner and outer radii and start and end angles. This example demonstrates importing D3 modules like `select` and `arc` from the library loaded via CDN.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.