Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Testing

Public visualization

Viewing a saved revision (read-only)

2f06dc06b0d04372a7986969e98b7bf2

D3 Testing

0 stars0🌍 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