Fork of only for testing
✓ Published0🌍 Public
This example demonstrates a minimal SVG rectangle rendered inside a div container using D3.js version 7.8.2. The code selects a div with class "svg", appends an SVG element, then appends a group and a rectangle with specified x, y, width, and height attributes. A dummy div above creates vertical spacing on the page. The example uses plain CSS for layout and D3's selection and append methods to construct the visualization.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed