Skip to main content
100%

Let's make a face with D3.js

✓ Published0🌍 Public
Nnnminh199914
Last edited Aug 13, 2020
Created on Aug 13, 2020

This example creates a cheerful face using D3.js within a React framework, rendered as an SVG. The visualization starts with a large yellow circle for the face, centered within the drawing area, and adds a single black circle positioned to the left for an eye. The code imports `select` and `arc` from D3, though only `select` is used to append shapes. The SVG canvas is sized at 990 by 500 pixels, with all elements positioned using absolute coordinates relative to the center of the viewport.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes