Skip to main content
Public

Share visualization

Loading preview…

first try

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

first try

0
AAmandineM97
Last edited Apr 13, 2022
Created on Apr 13, 2022

This visualization is a simple smiley face drawn from SVG primitives: a yellow circle, two black eyes, and a curved mouth path. The face is centered in an SVG canvas, with all elements grouped and positioned using affine transforms. The code uses the D3 `select` API to query the SVG element and `append` to add shapes, while the mouth is generated with the `d3.arc` function, which produces an SVG path from polar coordinates. The example demonstrates basic D3 v7 SVG construction without data binding.

AI-generated description

An example including some commonly used features of SVG.

Comments

Sign in to join the discussion.

MIT Licensed