🌍 Public
Viewing a saved revision (read-only)
090dea7464704cf8a2cefeacf59aeb0d
Customizing Axes
A horizontal bar chart displays population counts for ten countries, with countries listed along the y-axis and population values along the x-axis. The visualization uses D3 v5's `scaleLinear` for the population axis and `scaleBand` for the categorical country axis, with axes rendered via `axisLeft` and `axisBottom`. Data is loaded from a CSV file using `csv`, with population values multiplied by 1000 before rendering. The chart is drawn as blue SVG rectangles, positioned using the band scale's bandwidth and the linear scale's width mapping.
AI-generated description