Skip to main content
100%

bar

✓ Published0🌍 Public
Pprabhatdie
Last edited Aug 26, 2021
Created on Aug 26, 2021
Forked from HTML Starter

This example shows a simple bar chart built from a hardcoded array of nine numeric values. Each value is rendered as a vertical bar using a `div` element, with the bar’s height set dynamically via the `style` method. The page uses D3 v7’s data join pattern—`selectAll`, `data`, and `enter`—to append the bars to the body. A CSS class sets the bar’s width, while the background color of the entire page is changed to red using D3’s selection style API.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes