Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley Face

Public visualization

Smiley Face

0 stars2🌍 Public
Ss-pranathi
Last edited Feb 20, 2022
Created on Feb 16, 2022
Forked from HTML Starter

This example renders a stylized smiley face as an SVG graphic using D3.js. The face is composed of a yellow circle with eyes, spectacles, a mouth, and a red tongue. The code uses d3-selection to append SVG elements and d3-shape’s `arc()` generator to create the round spectacle frames, the mouth arc, and the tongue shape. Rectangles, rotated via SVG transforms, form the right eye and the bridge of the glasses.

AI-generated description

Making a basic emoji using D3.js & SVG(Scalable Vector Graphics)

Comments

Sign in to join the discussion.

MIT Licensed