Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

1. HTML Starter

Public visualization

Viewing a saved revision (read-only)

21f7df4ca5a54e90b13487917f5c8200

1. HTML Starter

0 stars0🌍 Public
UUlbert Alain Odle
Last edited Oct 9, 2021
Created on Oct 9, 2021
Forked from HTML Starter

This example shows a smiling face built with SVG shapes, including a yellow circle for the head, two smaller circles for eyes, and a curved mouth arc. The visualization is rendered using React with D3’s `arc` generator to define the mouth path, while the SVG elements are positioned with fixed pixel coordinates. It demonstrates a minimal setup for combining React, D3 v7, and SVG in an HTML page, with the face drawn centered on a 960 by 500 canvas. The code does not use data-driven features, instead hardcoding geometry values.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.