Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
CCreighton Chingarande
Last edited Nov 3, 2023
Created on Nov 2, 2023

Four overlaid rounded rectangles demonstrate core SVG fundamentals within a D3.js v5 environment. The visualization shows two overlapping shapes with varying corner radii, positioned using both pixel and viewport-height units. One red and one green rectangle dominate the center, while a pair of small vertical bars in red and green sit offset to the right, each with distinct dimensions. The code explicitly defines the SVG canvas, `rect` elements, and fill attributes, while a separate script imports D3’s `select` function and a local module to display a text message.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Test Heading

MIT Licensed

Similar vizzes