Skip to main content
100%

Vega-Lite API - sankey diagram

✓ Published0🌍 Public
Kkatjur01
Last edited May 15, 2023
Created on May 15, 2023
Forked from Vega-Lite API

This example uses the Vega-Lite API to construct a stacked bar chart showing the population of different religions by country. The visualization reads CSV data from a remote URL, which contains the top five religions per country. It employs `markBar` with x- and y-encodings for country and population, color-encoding by religion, and a tooltip for population values. The code registers Vega, Vega-Lite, and Vega-Tooltip, rendering the chart as an SVG that fits the window size. A custom config adjusts axis and label styling for improved readability.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes