Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of a complete barchart

Public visualization

Viewing a saved revision (read-only)

3612381cd7244b27a2e3f0ddb10704c2

Fork of a complete barchart

0 stars0🌍 Public
DDhiva21
Last edited Feb 8, 2023
Created on Feb 8, 2023

This example shows a simple bar chart visualizing an array of nine numeric values as blue rectangles with value labels above each bar. The chart includes axes on the left and bottom. It uses D3 v5 with SVG rendering in a React-friendly HTML setup, employing `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.axisBottom` and `d3.axisLeft` to generate the ticks. Bars are appended via data joins, with custom margins and padding.

AI-generated description

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

See also React Starter.