Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Starter

Public visualization

Viewing a saved revision (read-only)

b56d5fbb4e174518b172941585142c52

Fork of D3 Starter

0 stars0🌍 Public
PPhillip Yoo
Last edited Apr 9, 2022
Created on Apr 9, 2022
Forked from D3 Starter

This example shows a simple, static smiley face drawn as vector shapes in an SVG canvas. It uses the D3.js library (v7) to select the SVG element and programmatically append a large yellow circle for the face, two smaller black circles for the eyes, and a path for the mouth. The mouth is created using the `d3.arc` API, which generates an SVG path based on specified inner and outer radii and start/end angles. The code demonstrates fundamental D3 techniques for creating and positioning graphical primitives within a coordinate system.

AI-generated description

A demonstration of how to start using D3 version 6.