Skip to main content
100%

D3 starter

✓ Published1🌍 Public
Ggyan9427
Last edited Jun 16, 2022
Created on Jun 15, 2022
Forked from HTML Starter

This example demonstrates a simple SVG-based visualization using D3 v7 within a React-compatible setup, rendering 100 horizontal bars across the full viewport width, each 10 pixels tall. The bars are created with `d3.range` and `svg.selectAll(...).join('rect')`, masked by a circular `mask` element with the ID `circle-mask`. The mask, appending a white background, visually clips the bars through SVG masking. The code imports `select` and `range` from the D3 library, though the HTML page is minimal and the JavaScript is designed to run in a browser environment.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes