Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML Starter

Public visualization

Viewing a saved revision (read-only)

b038409e1d224d45aeaffc11cd904730

HTML Starter

0 stars1🌍 Public
Wwachji2001
Last edited Sep 3, 2020
Created on Sep 2, 2020
Forked from HTML Starter

This example demonstrates a minimal setup for creating SVG visualizations with D3.js within a React project. It renders a single yellow circle centered horizontally on a 600 by 600 pixel canvas, using d3.select to manipulate the SVG element and its attributes. The code parses a string value from a JavaScript object into a number, though this parsed value is not used in the visualization. The circle’s radius and vertical position are fixed, while the horizontal coordinate is calculated from the SVG’s width attribute using unary plus for type conversion.

AI-generated description

A bare minimum HTML page.

See also React Starter.