Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Vega-Lite API Template

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed