Skip to main content
100%

Retail Sales Bar Chart

✓ Published0🌍 Public
KKOLLIPATI NIKHIL
Last edited Oct 19, 2025
Created on Oct 19, 2025
Forked from Simple 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
MIT Licensed

Similar vizzes