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
DDayalghosh
Last edited Jul 13, 2019
Created on Jul 12, 2019

This example draws a simple face using D3.js by appending a circle to an SVG element. The circle’s radius is set to half the SVG’s height, with its center positioned at the middle of the drawing area. The code uses `select` from D3 to grab the SVG and `attr` to set the circle’s properties based on the width and height attributes. A CSS import loads the Ubuntu font, and the SVG is scaled and translated via its transform attribute.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed