Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Stacked Bar Chart

Public visualization

Viewing a saved revision (read-only)

4772c8121b2447ad8f78971e5d481257

Stacked Bar Chart

0 stars0🌍 Public
SSree Yuktha Sunkara
Last edited Apr 25, 2024
Created on Apr 25, 2024

This stacked bar chart displays 2017 rice, maize, and barley yields for each state, using data from an ICRISAT district-level CSV file. The visualization uses D3 version 7, with `d3.stack()` to compose the series and `d3.scaleBand` and `d3.scaleLinear` for axes, rendered as SVG. Interactive tooltips appear on mouseover, while a legend highlights individual crop categories. Bar heights are determined by yield values, with a rotated x-axis and a title clarifying the plotted metrics.

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.