Skip to main content
100%

Vega-Lite API Template

✓ Published18🌍 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.

MIT Licensed

Similar vizzes