Skip to main content
100%

Fork of Sad smiley face with D3.js

✓ Published0🌍 Public
LLohieth R
Last edited Sep 22, 2023
Created on Sep 22, 2023

A fork of the Sad smiley face with D3.js example renders a yellow circle face with two eyes and a sad, downward-curved mouth as an SVG. The code uses D3 v5's `select` and `arc` APIs to build the shapes, positioning the face elements relative to the center of an 960×500 SVG canvas. The mouth is drawn as an arc path with specified inner and outer radii and angles, while the eyes and face are simple circles with fixed offsets. All styling is handled via inline attributes and a minimal external stylesheet.

AI-generated description

ICE - 4 Introduction to VizHub and make a face in D3.js

MIT Licensed

Similar vizzes