Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Retail Sales Bar Chart

Public visualization

Retail Sales Bar Chart

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed