Skip to main content
100%

D3 Testing

✓ Published0🌍 Public
Kkhaledakanan@gmail.com
Last edited May 26, 2024
Created on May 26, 2024
Forked from HTML Starter

This example demonstrates fundamental SVG shape rendering and styling using D3.js. It shows how paths create geometric forms, including a red triangle, blue cross, and orange polygon, with filled and stroked variants. The code uses `d3.select` and `.append('path')` to add SVG elements dynamically, while static paths are defined directly in the HTML. Attributes such as `d`, `fill`, `stroke`, and `stroke-width` control shape geometry and appearance, highlighting the different behaviors of closed paths versus open strokes.

AI-generated description
MIT Licensed

Similar vizzes