Skip to main content
Public

Share visualization

Loading preview…

Varun

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

Varun

1
VVarun Gadde
Last edited Feb 28, 2024
Created on Feb 28, 2024
Forked from Smiling face

This example creates a cat face using D3.js version 7, building each facial feature as an SVG element. It shows a simple geometric cat composed of circles, an ellipse, paths, and lines. The code demonstrates manual SVG construction using `document.createElementNS` to add body, head, eyes, nose, mouth, and whiskers, all styled with inline attributes. The cat is rendered in grayscale with a pink nose, centered on a 500x500 pixel canvas within a 960x500 SVG viewport, using CSS flexbox for centering.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed