Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Making a bar chart

0 stars0๐ŸŒ Public
Rrychenf1
Last edited Nov 15, 2019
Created on Nov 15, 2019
Forked from Making a bar chart

This example demonstrates how to build a horizontal bar chart showing population figures for ten countries, with population values scaled by a factor of one thousand. The visualization uses D3 v5 to load CSV data, create linear and band scales, and render SVG rectangles with axes. Country names appear on the y-axis via `axisLeft`, while population values are displayed on the x-axis using `axisBottom`. The chart is styled with steelblue bars and custom font sizing through external CSS.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed