Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Food Production Stacked Bar Chart

Public visualization

Viewing a saved revision (read-only)

4bb9e0de55d34ae395ff261d165e6d8e

Food Production Stacked Bar Chart

1 star3🌍 Public
Llrsavoie@wpi.edu
Last edited Apr 30, 2024
Created on Apr 24, 2024

A stacked bar chart visualizes estimated food production across seven continents for 2021, with each bar segmented by food type in millions of tonnes. Hovering over a legend item highlights the corresponding segment and fades others, while the matching bar segment is raised with a black stroke. Built with D3.js v7, the example uses `d3.stack`, `scaleOrdinal` with `schemeCategory10`, and `flatRollup` to transform data from the world food production dataset.

AI-generated description

Stacked bars showing estimated religion breakdown of the most populous 20 countries in 2010. Based on an example from the tutorial Splitting Charts. Interactions:

  • Hover over the legend to highlight religions.

Data is from The Global Religious Landscape by Pew Research, generated using this processing script.