Skip to main content
100%

practice

✓ Published0🌍 Public
Cchiiii-beginner
Last edited Jul 21, 2023
Created on Jul 18, 2023
Forked from HTML Starter

This example creates a simple bar chart with D3.js v6, rendering a single black rectangle onto an SVG canvas. The chart positions the rectangle at a fixed x-coordinate of 10 and y-coordinate of 20, with a width of 10 pixels and a height of 300 pixels. The code uses D3's `select` function to append the SVG element to the document body, and sets the SVG dimensions to match the browser window’s width and height. The visualization serves as a minimal practice exercise, demonstrating basic SVG shape creation and attribute manipulation without any data binding.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes