Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

SVG FILE TESTER

Public visualization

SVG FILE TESTER

0 stars0🌍 Public
Aadventuresenglish.info@gmail.com
Last edited Dec 19, 2023
Created on Dec 18, 2023
Forked from D3 Starter

This example demonstrates how an SVG file can be loaded and embedded into an HTML page. It uses D3’s `xml()` function to fetch an external SVG file, retrieves the document element, and adjusts its `viewBox` and dimensions to fit a specified height while preserving the aspect ratio. The modified SVG is then appended to the page body. The visualization also includes a static red cross-hatch pattern from the source file, rendered using standard SVG elements.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed