Skip to main content
100%

Vega-Lite Stacked Bar Chart

✓ Published0🌍 Public
Bbakstorage00001
Last edited Feb 2, 2022
Created on Feb 2, 2022

This stacked bar chart displays the population distribution of five major religions across different countries, using horizontal bars where each segment’s length represents population size and color encodes religious affiliation. Built with the Vega-Lite API on top of Vega and Vega-Lite, the visualization fetches data from a CSV file via `d3.csv` and renders interactively as an SVG, with tooltips enabled through Vega-Tooltip. The chart applies custom configuration for axis styling and font sizes, and sorts countries by total population, with bar size and opacity fixed at 100 and 1 respectively.

AI-generated description
MIT Licensed

Similar vizzes