Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

17ba6b6105dc44e1b875d1513799724e

Fork of Vega-Lite API Template

0 stars0🌍 Public
KK3zter
Last edited Dec 16, 2021
Created on Dec 16, 2021

This visualization uses the Vega-Lite API with D3 to render a bubble chart showing the top five religions by country. It plots countries on the x-axis and religions on the y-axis, with circle size encoding population on a logarithmic scale. The chart is built with `vl.markCircle` and encodes fields via `vl.x().fieldN()`, `vl.y().fieldN()`, and `vl.size().fieldQ()`. Data is loaded asynchronously from a CSV using D3’s `csv` function, and the visualization is configured with custom axis and label styling from a config object.

AI-generated description

A visualization constructed using the vega-lite-api.