Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3.js Starter

Public visualization

Viewing a saved revision (read-only)

3dd5012818184c98b82c89149bd4937e

D3.js Starter

0 stars2🌍 Public
VVikil Lakkavatri
Last edited Jul 19, 2020
Created on Jul 18, 2020
Forked from D3.js Starter

This example shows a simple smiley face drawn with D3.js, using a yellow circle for the head, two black circles for eyes, and an arc path for the mouth. It renders to an SVG element with fixed dimensions. The code imports `select` and `arc` from D3 v5, uses `svg.append` to create each shape, and sets attributes like `fill`, `r`, and `cx`/`cy` directly. The mouth’s path is generated by the `arc()` function with specified start and end angles. The page loads D3 from a CDN and runs the script in a React-based setup.

AI-generated description

A bare minimum HTML page.

See also React Starter.