Iterating Fast with Vega Lite API
This example visualizes the distribution of populations across countries and religions, using circle size to represent population magnitude for each country–religion pair. It is built with the Vega-Lite API, which constructs a specification programmatically through chained methods like `vl.markCircle()`, `vl.x()`, and `vl.size()`. The underlying data is loaded via D3’s `csv` function from a Gist containing UCI Machine Learning Repository data. The visualization renders to SVG through Vega and Vega-Lite, with tooltips provided by vega-tooltip and axis styling customized via a shared config object.
AI-generated descriptionA visualization constructed using the vega-lite-api.
The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.