Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley Face (Part 3) - Assignment -> D3.js

Public visualization

Smiley Face (Part 3) - Assignment -> D3.js

0 stars2🌍 Public
NNoor M
Last edited Feb 8, 2020
Created on Jan 18, 2020
Forked from Untitled

This example shows a yellow smiley face drawn with SVG primitives: a yellow circle for the head, black circles for the eyes and pupils, and a red arc for the mouth. Rendered with React, it uses D3.js’s `arc` generator to construct the mouth path, specifying inner and outer radii, a corner radius, and angular start and end points. The face is centered within a 960×500 SVG viewport using explicit pixel offsets for the eyes and mouth. The code sets stroke widths in pixels but does not animate or respond to interaction.

AI-generated description

Smiley Face - Part 3- D3 Authored by : Noor

Comments

Sign in to join the discussion.

MIT Licensed