HTML Starter
✓ Published0🌍 Public
This example demonstrates a minimal HTML page that uses D3.js to render a single black line on an SVG canvas. The page creates an SVG element with a fixed width and height, then appends a line shape with specified start and end coordinates. The code uses the D3 v7 library through a direct script tag in the index.html file, while the identical logic also appears in the index.js module. The example serves as a bare-bones starter template for understanding how D3 interacts with SVG elements in a web page.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed