Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Circle for religion vs. country

Public visualization

Viewing a saved revision (read-only)

a71728a575d84fdda0918896d9dd05ab

Circle for religion vs. country

0 stars1🌍 Public
YYee Han
Last edited Dec 22, 2020
Created on Dec 22, 2020

This example shows the distribution of major religions across countries using circle marks sized by population. The x-axis sorts countries by total population, while the y-axis lists religious affiliations, with tooltips revealing the specific religion for each circle. Data comes from a CSV file loaded via `d3.csv` and is rendered using the Vega-Lite API’s `markCircle` method, with quantitative encoding for population and nominal fields for country and religion. Styling is customized through a config object, and the visualization auto-fits the browser window.

AI-generated description

A visualization constructed using the vega-lite-api.