Skip to main content
Public

Share visualization

Loading preview…

D3.js Starter

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

D3.js Starter

0
VVikil Lakkavatri
Last edited Jan 17, 2023
Created on Jul 19, 2020
Forked from D3.js Starter

This interactive React visualization renders a stylized face using SVG primitives. A radial gradient defines the head's golden shading, while D3.js v5's `line()` and `curveCardinal()` functions from the `d3-shape` component construct the eye shapes. The custom `eyeGeneratorCurve()` function coordinates curve paths based on calculated distances between points. Each eye is drawn as a closed path with filled white interiors and black strokes, positioned within a translated group. The application manages state and rendering through React's component system, with the SVG canvas sized at 400 by 400 pixels.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed