Skip to main content
100%

Stacked Bar Chart w/ Vega Lite API

✓ Published1🌍 Public
Hhunsingeruk@gmail.com
Last edited Oct 18, 2023
Created on Oct 18, 2023

This stacked bar chart visualizes the population breakdown by religion for various countries, using the Vega-Lite API to construct the chart declaratively. The visualization loads CSV data from a GitHub gist via d3.csv, and renders an interactive SVG with tooltips. The code customizes the appearance through a Vega-Lite config object, adjusting font sizes and axis styling, while the chart itself sorts countries by total population and omits the zero baseline for a more compact layout. The example combines Vega, Vega-Lite, Vega-Lite API, Vega Tooltip, and D3 v5 libraries.

AI-generated description
MIT Licensed

Similar vizzes