Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 Public
OOlowogoke Seun
Last edited Oct 4, 2021
Created on Oct 1, 2021

This visualization presents a stacked bar chart of top-country populations by religion, drawn from the UCI Machine Learning Repository’s Auto MPG dataset via a Gist. Built with the Vega-Lite API wrapper, it registers Vega and Vega-Lite libraries, using `vl.markBar`, `vl.x().fieldN('country').sort('-y')`, and `vl.y().fieldQ('population')` to encode positions. The `config.js` customizes axis and label styles, while `getData.js` loads CSV data via `d3.csv`. Interactive tooltips are enabled through the vega-tooltip `Handler`.

AI-generated description

A 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.

MIT Licensed

Similar vizzes