🌍 Public
Viewing a saved revision (read-only)
3ba6591485f5497b88983b521ed4e5f0
Vega-Lite API Template Blue
This example uses the Vega-Lite API to render a bubble plot of religious affiliation by country, with circle size encoding population. The chart aggregates data from a CSV file of top-five religions per country, sorting countries by total population along the x-axis. Built with the `vega-lite-api` library, it registers Vega and Vega-Lite, configures a dark custom theme, and renders a full-screen SVG with tooltips. The code loads data using d3.csv and applies a circular mark with field-based encodings for position and size.
AI-generated descriptionA visualization constructed using the vega-lite-api.