Skip to main content
100%

Self practice0

✓ Published0🌍 Public
GGbemiga Atolagbe
Last edited May 15, 2024
Created on May 15, 2024
Forked from HTML Starter

This example uses D3.js (v6.6.1) to render a static SVG visualization of 100 horizontal rectangular bars, each with a fixed height of 10 pixels and spaced 20 pixels apart vertically. The code creates an SVG canvas sized to the browser window and applies a circular mask to every rectangle, clipping each bar into an oval shape via the `url(#circle-mask)` reference. The data is generated procedurally in a loop, and the marks are bound using D3’s `selectAll` and `join` APIs, though the mask definition is not included in the provided files.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes