Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

BMW Simple Bar Chart

Public visualization

Viewing a saved revision (read-only)

7ebaba6accd04fcbbcbb6c94623abfe2

BMW Simple Bar Chart

0 stars0🌍 Public
BBismark Kofi Owusu Sarfo
Last edited Sep 30, 2025
Created on Sep 30, 2025

This example shows a stacked bar chart of population estimates for the top 10 countries, using data from the UN Population Estimates CSV. The chart breaks down each country's total population into three simulated series (Urban, Suburban, Rural) represented by colored stacks, with a legend and rotated x-axis labels. It uses d3.scaleBand and d3.scaleLinear to position bars, d3.stack for stacking, and d3.axisBottom/axisLeft for axes. The visualization follows a unidirectional data flow pattern via d3-rosetta, enabling interactive bar selection with click handlers.

AI-generated description