Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Religeon by Country Top 5 Stacked Bar Chart

Public visualization

Viewing a saved revision (read-only)

460882a048504a259d3f5f181281838b

Vega-Lite API Religeon by Country Top 5 Stacked Bar Chart

0 stars0🌍 Public
NNelson M
Last edited Nov 18, 2023
Created on Nov 18, 2023

This stacked bar chart displays the top five countries by population, broken down by religious affiliation, using data from a CSV file of global religion statistics. Each bar is segmented by religion with a color encoding and interactive tooltips showing population values. The visualization is built with the Vega-Lite API, which registers Vega and Vega-Lite libraries, and renders SVG output. Data loading uses the `csv` function from d3, while the chart configuration and encoding are defined through the `vl` API methods like `markBar`, `encode`, and `config`.

AI-generated description

A visualization constructed using the vega-lite-api.