Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart with D3.js

Public visualization

Viewing a saved revision (read-only)

6d07c64dfa804c48a80c8ca0c89db828

Bar Chart with D3.js

0 stars0🌍 Public
Ssaikrishnabussa
Last edited Jul 14, 2023
Created on Jul 14, 2023
Forked from HTML Starter

This bar chart visualizes the relationship between five named categories and their numeric values using D3.js v6. The visualization renders as an SVG with steelblue rectangular bars, a chart title, and no axis labels drawn. The code demonstrates D3’s `scaleBand` and `scaleLinear` for positioning and sizing bars, along with data binding via `selectAll` and `enter`. The input data is a hardcoded JavaScript array containing category-value pairs, and the chart is embedded in a basic HTML page without a framework.

AI-generated description

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

See also React Starter.