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
GgirishPandeyTR
Last edited Jul 29, 2020
Created on Jul 29, 2020

This example demonstrates how to build a simple face using D3.js within a React framework. The page renders an SVG with a red background, and the face is composed of line elements styled with black strokes and green paths. D3’s `select` function is used to grab the SVG element and apply the background color, while the `lines` CSS class defines the stroke properties for the facial features. The visualization sources data from a minimal HTML file that loads D3 v5 from a CDN.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed