Skip to main content
100%

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

✓ Published2🌍 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

MIT Licensed

Similar vizzes