Skip to main content
Explore
Solutions
Bespoke Studio
Pricing
Quick Start
Demo
Log in
Send feedback
✕
Tell us what works and what could be better. We read every submission.
Send feedback
✕
Tell us what works and what could be better. We read every submission.
Home
•
Fork Viz
Fork Viz
Create your own copy of this visualization.
Forking from
Smiley Face Part III
Title
*
Description
This example shows a smiley face rendered as SVG, with a yellow circle for the head, two dark eyes, and a smile drawn as a thick arc. The visualization demonstrates how to combine React for component structure with D3’s `arc` generator for the mouth path. The `arc()` is configured with inner and outer radii, start and end angles, and outputs a `path` element. All shapes are positioned using SVG coordinates, and the face is centered via a `g` transform. The code uses React 16.9 and D3 v5, both loaded from CDNs, with the final SVG drawn declaratively inside the React component.
Visibility
Public
Private (only you), Pro
Unlisted (anyone with link)
Private work requires Pro.
Upgrade
Cancel
Fork Viz