Skip to main content
100%

Circle for religion vs. country

✓ Published1🌍 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.

MIT Licensed

Similar vizzes