Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template - stacked barchart

Public visualization

Viewing a saved revision (read-only)

a42257b60948466c90dd239738f8415d

Vega-Lite API Template - stacked barchart

0 stars1🌍 Public
Llaplantalaplanta
Last edited Jan 20, 2022
Created on Jan 20, 2022

This example presents a stacked bar chart of population by religion across countries, using a dark-themed visualization to improve readability. The chart is built with the Vega-Lite API, which programmatically constructs the specification, while D3.js handles CSV data loading from a remote source. The visualization renders through Vega and Vega-Lite, with a tooltip handler for interactive population details. The chart resizes to fit the browser window, and the color encoding distinguishes religious affiliations.

AI-generated description

A visualization constructed using the vega-lite-api.