Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

vega-light

Public visualization

Viewing a saved revision (read-only)

12541200a9c344868bbf259f4159d253

vega-light

0 stars0🌍 Public
Iindranil-sri
Last edited Nov 10, 2021
Created on Nov 9, 2021

This example uses Vega-Lite’s JavaScript API to render a stacked bar chart of global religious populations by country, sourced from a CSV file. The visualization sorts countries in descending order and encodes religion with color, with tooltips for each segment. It integrates React, Vega, and Vega-Lite through the `vega-lite-api`, and applies custom axis and label styling from a shared config. The chart is rendered as SVG, fitting the full browser window.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.