🌍 Public
Viewing a saved revision (read-only)
7e3c40a760574149aa61d523b85f42fa
Fork of Hello VizHub
This example demonstrates a simple SVG composition that combines a mask with a heart-shaped cutout to display a message. It uses D3.js v5's `select` to target a div and set its text content, while also importing a local ES6 module to supply the greeting. The page renders an orange polygon and a masked circle, with the mask defining a heart silhouette through SVG paths and rectangles. The visualization showcases fundamental D3 and SVG capabilities, including the use of conditional masking and modular JavaScript imports, all within a basic HTML structure loaded from a CDN.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.