Skip to main content
100%

Making a bar chart

✓ Published1🌍 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
MIT Licensed

Similar vizzes