Retail Sales Bar Chart
✓ Published0🌍 Public
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 descriptionMIT Licensed