Skip to main content
100%

Let's make a face with D3.js

✓ Published1🌍 Public
JJake
Last edited Jul 10, 2020
Created on Jul 10, 2020

This example demonstrates how to construct a simple cartoon face using D3.js v5 within a React project. The code selects an SVG element and reads its dimensions via the `attr` method to set up the drawing space. It uses D3’s selection and attribute APIs to position basic shapes, though the face itself is not fully implemented in the provided snippet. The page is rendered through an HTML shell that loads the D3 library from a CDN and references a bundled JavaScript file.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes