🌍 Public
Viewing a saved revision (read-only)
6307316725bf4ef6b5f0c815ff5c461d
Retail Sales Bar Chart
This example shows a bar chart of the top 10 most populous countries, using the UN population estimates dataset. The chart displays population values on the y-axis and country names on the x-axis, with a light gray inner rectangle framing the plot area. It uses D3’s `scaleBand` and `scaleLinear` for positioning, `axisLeft` for the y-axis, and custom `xAxis` and `yAxis` label functions from `@curran/axis-labels`. The data is filtered to country-level entries and sorted in descending order before rendering the bars.
AI-generated description