Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Viewing a saved revision (read-only)

93e86ddc3ac640f79b308cb178e46dd7

Making a bar chart

0 stars1🌍 Public
PPredrag Nikolic
Last edited Apr 3, 2021
Created on Apr 3, 2021
Forked from D3 Starter

This example shows a horizontal bar chart of country populations, with bars rendered in steel blue and value labels along the x-axis. It loads data from a CSV file, converting population values to thousands before scaling. The visualization uses D3 v6’s `scaleLinear` and `scaleBand` for positioning, with `axisLeft` and `axisBottom` for ticks, and appends SVG `rect` elements within a margin-based group.

AI-generated description