Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Let's make a face with D3.js!

0 stars0🌍 Public
Mm-chhetri
Last edited Jan 12, 2023
Created on Jan 12, 2023
Forked from HTML Starter

This example builds a simple cartoon face inside an SVG canvas using D3.js and React-compatible JavaScript. It draws a yellow circular head with black strokes and adds a teal rectangle as a decorative element, positioning shapes via `select`, `attr`, and `append` calls from `d3`. The page renders in a fixed 960×500 SVG container, with styling handled through external CSS that removes margins and hides overflow. The code demonstrates fundamental SVG shape creation and attribute manipulation using D3’s declarative approach.

AI-generated description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed