Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

c39135069f9f41038ef7f8c5673d49d0

Vega-Lite API Template

0 stars18🌍 Public
CCurran Kelleher
Last edited Sep 5, 2019
Created on Sep 5, 2019

This example shows a stacked bar chart of population by country, colored by religion, using a Vega-Lite specification written in JavaScript. The visualization queries data from a CSV file hosted on GitHub, loads it via `d3.csv`, and renders with an SVG backend. It demonstrates the vega-lite-api library’s fluent encoding methods, along with vega-tooltip for interactive hover details, and custom axis and label styling from a shared config object.

AI-generated description

A visualization constructed using the vega-lite-api.