Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML Starter

Public visualization

HTML Starter

0 stars0🌍 Public
Nnateh
Last edited May 19, 2020
Created on May 18, 2020
Forked from HTML Starter

This starter template demonstrates the minimum setup for a D3.js project, loading the library from a CDN and wiring it to an SVG canvas. The code selects a fixed 960-by-500-pixel SVG with `d3.select` and immediately changes its background to red via the `style` method, serving as a trivial visual confirmation that the D3 bindings are functional. It uses the D3 v5 API alongside a linked external stylesheet, and the example focuses on establishing the core HTML, script, and SVG structure common to more complex visualizations.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed