Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart Example

Public visualization

Bar Chart Example

0 stars1🌍 Public
BBhavanaGIrni
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from HTML Starter

This example shows a bar chart comparing five categories using a static dataset, with each bar’s height encoding the category value. It renders as an SVG via D3 v6, using `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis. The bars are drawn as `rect` elements, and axes are generated with `d3.axisBottom` and `d3.axisLeft`. The chart is built inside a React-compatible structure but uses plain JavaScript in a single HTML page.

AI-generated description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed