Skip to main content
100%

Iterating Fast with vega-lite api

✓ Published0🌍 Public
Kkbrookshire420
Last edited May 7, 2022
Created on May 7, 2022

This example visualizes the global distribution of religious populations across countries using a bubble chart, where circle size encodes population and axes represent country and religion. It loads CSV data via d3.csv, then builds the chart with the vega-lite API’s `vl.markCircle()` and encoding helpers like `vl.x().fieldN()`, `vl.size().fieldQ()`, and `vl.tooltip()`. The visualization renders as SVG through Vega-Lite, with custom axis and label styling from a config object, and integrates react state and vega-tooltip for interactive inspection.

AI-generated description

A program that loads in some data using d3 utilities, and uses react state to keep track of the data.

MIT Licensed

Similar vizzes