Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Ss-janibekova
Last edited Nov 18, 2019
Created on Nov 18, 2019

This example demonstrates how to draw a face using D3.js. The visualization fills the browser viewport with a rounded rectangle, created by chaining `select` and `attr` methods on the SVG element. It uses the `d3.select` API to target the SVG container and appends a styled rectangle shape. The code calculates the drawing area dimensions from the document body’s client width and height. This serves as a minimal, geometric illustration of D3’s SVG rendering capabilities without any external data.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes