Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML Starter

Public visualization

HTML Starter

0 stars0🌍 Public
Hheniotamura
Last edited Sep 15, 2020
Created on Sep 15, 2020
Forked from HTML Starter

This example renders a single yellow circle with a red outline centered inside an SVG element. It demonstrates the basic structure of a D3.js visualization in an HTML page, using d3.select to access the SVG and chaining .attr calls to set the circle’s radius, position, and colors. The SVG dimensions are read directly from the DOM via .attr('width') and .attr('height'). The visualization is minimal, serving as a template for building more complex charts while running D3 v6 within a React project setup.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed