Skip to main content
100%

make a face

✓ Published3🌍 Public
Mmanishabehera
Last edited Apr 5, 2021
Created on Apr 3, 2021
Forked from Hello VizHub

This example illustrates a simple face constructed from basic SVG shapes using D3 version 6. A yellow circle forms the head, with two smaller black circles serving as eyes, all positioned using absolute pixel coordinates. The mouth is created with D3's `arc` generator, which defines a path using inner and outer radii along with start and end angles. The visualization loads D3 via UNPKG and uses the `select` and `append` methods to build the SVG scene, showcasing D3's utility for creating primitive graphics through its DOM manipulation interface.

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.
MIT Licensed

Similar vizzes