Skip to main content
100%

D3.js Bar Chart

✓ Published0🌍 Public
KKHUN LOUN ZAI
Last edited May 14, 2023
Created on May 14, 2023
Forked from HTML Starter

This example displays a simple bar chart rendered as three colored rectangles within an SVG container. The code uses D3.js v7, loaded via a CDN link, alongside standard HTML and CSS. Each bar’s position and size are hardcoded directly in the SVG elements, with `rect` tags specifying x, y, width, and height attributes. The visualization demonstrates basic SVG drawing without data binding or scales, serving as a minimal static chart. The source is plain HTML with inline SVG markup.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes