Skip to main content
100%

Vega-Lite Stacked Bar Chart

✓ Published0🌍 Public
KKevin McMorrow
Last edited Sep 18, 2021
Created on Sep 18, 2021

This example visualizes the distribution of religious affiliations across countries using a stacked bar chart. Each bar represents a country, segmented by religion, with segment size encoding population. Built with the Vega-Lite API in conjunction with D3.js, the chart loads CSV data from a Gist derived from the UCI Auto MPG dataset, though the visualization itself uses religion-by-country data. The code configures axes, tooltips, and an SVG renderer, with Vega Tooltip handling interactive hover details.

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