Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Introduction to D3

Public visualization

Viewing a saved revision (read-only)

6cf3bbadb74a4ecd9876cff0f841e248

Introduction to D3

0 stars0🌍 Public
Hhossaphul
Last edited Mar 22, 2023
Created on Mar 22, 2023
Forked from HTML Starter

This example demonstrates a minimal introduction to D3, showing how to create an SVG canvas that fills the entire browser window. The code uses the `select` and `append` functions from the D3 library to dynamically add an SVG element to the HTML body, then sets its width and height attributes based on the window’s dimensions. The visualization renders nothing beyond an empty, resizable SVG container, serving as a starting point for more complex D3 projects. The page is built from a barebones `index.html` file with no pre-existing content, relying on JavaScript to construct the visual output at runtime.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.