Skip to main content
100%

Untitled

✓ Published0🌍 Public
Kkatebacon32
Last edited May 24, 2021
Created on May 18, 2021
Forked from D3 Starter

A simple SVG polygon is drawn on a blank canvas, using a custom `Polygon` constructor that wraps the native SVG `polygon` element and its `points` attribute. The code initializes a single shape with five coordinates and a dark blue fill. The page is centered using flexbox in CSS, with no D3 library calls present despite the README’s mention of D3 version 6. The visualization demonstrates basic SVG creation and manipulation through vanilla JavaScript, appending the element directly to the body.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes