🌍 Public
Viewing a saved revision (read-only)
c39135069f9f41038ef7f8c5673d49d0
Vega-Lite API Template
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 descriptionA visualization constructed using the vega-lite-api.