Skip to main content
100%

Shapes with svg

✓ Published1🌍 Public
TTrustPaul
Last edited Oct 30, 2020
Created on Oct 30, 2020
Forked from HTML Starter

This example uses D3.js to draw a yellow circle with a black stroke on an SVG canvas, representing a face with a single black eye. The code appends SVG circle elements using D3 selections, setting attributes like radius, center coordinates, and fill colors directly. The circle’s size and position are derived from the SVG’s width and height attributes, while the eye is positioned relative to those dimensions. The visualization demonstrates basic SVG shape creation and attribute manipulation through D3’s `select` and `append` methods.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes