Vega-Lite API Template - stacked barchart
✓ Published1🌍 Public
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 descriptionA visualization constructed using the vega-lite-api.
MIT Licensed