🌍 Public
Viewing a saved revision (read-only)
5f4722e4db244eb3b9c27b0e67590fb6
Fork of bar customize
This example displays a horizontal bar chart of the top 10 most populous countries, with population values on the x-axis and country names on the y-axis. The visualization uses D3 v7’s `scaleLinear` and `scaleBand` to map data, and `axisBottom` and `axisLeft` to render axes with custom tick formatting (converting G to B). Data is loaded from a CSV file via `d3.csv`, and each bar’s width reflects the population value multiplied by 1000. The SVG rendering includes a title, axis label, and gridlines with tick marks.
AI-generated description