Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 Public
Ssatyenataagyaa
Last edited Mar 7, 2021
Created on Mar 5, 2021

This example uses the Vega-Lite API to create a stacked bar chart of global religious demographics by country, sourced from a CSV file via D3’s `csv` loader. The visualization encodes country on the x-axis, population on the y-axis, and religion as color, with tooltips showing population values. The chart is rendered as SVG using Vega-Lite’s `markBar` and `encode` methods, with styling customized through a config object for axis and label appearance.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes