Skip to main content
100%

Vega-Lite API

✓ Published0🌍 Public
Ee-ines
Last edited Apr 5, 2021
Created on Apr 5, 2021

This example uses the Vega-Lite API to render a bubble chart of religious demographics by country, showing the relative population sizes of the top five religions per nation. The visualization encodes country on the x-axis, religion on the y-axis, and population as the size of each circle, with tooltips displaying the exact population values. The code loads CSV data from a remote URL using d3.csv, then constructs the chart through the Vega-Lite API’s markCircle and encode methods. It integrates Vega, Vega-Lite, and the vega-tooltip handler, with appearance customized via a config object that adjusts axis labels and title fonts.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes