🌍 Public
Viewing a saved revision (read-only)
93e86ddc3ac640f79b308cb178e46dd7
Making a bar chart
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