Skip to main content
100%

Fork of Fork of Fork of Episode 18 - Iterating Fast with Vega Lite API - Stacked Bar

✓ Published0🌍 Public
Zzjulijie0618
Last edited Jan 16, 2022
Created on Jan 16, 2022

This stacked bar chart visualizes the distribution of religions across countries, using population to encode the share of each religious group. The visualization is built with the Vega-Lite API, registered with Vega and Vega-Lite, and relies on d3.csv for data loading from a Gist containing the religionByCountryTop5 dataset. The bars are sorted by country in descending order, with color mapping population values and tooltips displaying the exact population figures. The chart fits the full browser window via an autosize setting and applies a custom configuration for axis styling and label font sizes.

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