DataViz Starter
A minimal SVG-based starter template for data visualization, this example renders a single empty red rectangle onto a 960x500 canvas. It demonstrates the fundamental pattern of creating SVG elements programmatically through the Document Object Model (DOM) APIs, specifically using `document.createElementNS` and `setAttribute` to construct and configure the shape. The code shows the basic structure for bootstrapping a visualization project, with inline CSS resetting the page margins and hiding overflow. The approach highlights raw JavaScript manipulation of the SVG namespace without any additional libraries or data, serving as a foundation for more complex visualizations.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.