gallery_examples

Vega, Vega-Lite and Altair gallery example index

An index of examples published in the Vega, Vega-Lite, and Altair galleries. Each record describes one example, links to its rendered page and source, lists its gallery categories, and identifies any vega-datasets resources it uses. The datasets array is empty when it uses none.

The contents of gallery-examples.json are a snapshot of the three galleries, created for a particular vega-datasets release from one pinned commit per gallery. When a newer version of vega-datasets is released, the file may be regenerated to reflect examples added, removed, or updated in those galleries.

JSON 471 rows 7 fields 260 KB

Fields

FieldTypeDistributionSummaryMissing
gallery_name

Gallery that publishes the example

Allowed values: vega, vega-lite, altair

string 3 distinct vega-lite 189 · altair 188 · vega 94 Missing 0
example_name

Human-readable example title

string 413 distinct Donut Chart 3 · Grouped Bar Chart 3 · Horizon Graph 3 Missing 0
example_urlKey

Stable, unique URL of the rendered gallery example

stringuri 471 distinct https://altair-viz.github.io/gallery/airport_connections.html 1 · https://altair-viz.github.io/gallery/andrews_curves.html 1 · https://altair-viz.github.io/gallery/annual_weather_heatmap.html 1 Missing 0
spec_url

Immutable, commit-pinned URL of the source specification or code

Unique

stringuri 471 distinct https://cdn.jsdelivr.net/gh/vega/altair@78c66bf226b3bb36277fe0c261f469e5b6200a30/tests/examples_arguments_syntax/airport_connections.py 1 · https://cdn.jsdelivr.net/gh/vega/altair@78c66bf226b3bb36277fe0c261f469e5b6200a30/tests/examples_arguments_syntax/andrews_curves.py 1 · https://cdn.jsdelivr.net/gh/vega/altair@78c66bf226b3bb36277fe0c261f469e5b6200a30/tests/examples_arguments_syntax/annual_weather_heatmap.py 1 Missing 0
categories

Array of category-name strings assigned by the source gallery

list 51 distinct ["bar charts"] 29 · ["Bar Charts"] 28 · ["interactive charts"] 26 Missing 0
description

Description of what the example demonstrates, or null when unavailable

string 389 distinct Google's stock price over time. 4 · Stock prices of 5 Tech Companies over Time. 3 · A bar chart with negative values. We can hide the axis domain line, and instead use a conditional grid color to draw a zero baseline. 2 Missing 73 · 15.5%
datasets

Array of Data Package resource names (`resources[].name`) used by the example, sorted alphabetically; the order carries no meaning

list 59 distinct [] 119 · ["cars"] 53 · ["movies"] 47 Missing 0

Profiled across all 471 rows.

Explore

Vega-Lite · bar mark · count aggregate · tooltipVega-Lite · bar mark · count aggregate · tooltip
Open This Chart in the Vega Editor

Preview

First 5 of 471 rows5 of 471 rows
gallery_nameexample_nameexample_urlspec_urlcategoriesdescriptiondatasets
altair2D Histogram Heatmaphttps://altair-viz.github.io/gallery/histogram_…https://cdn.jsdelivr.net/gh/vega/altair@78c66bf…["distributions"]This example shows how to make a heatmap from b…["movies"]
altair2D Histogram Scatter Plothttps://altair-viz.github.io/gallery/histogram_…https://cdn.jsdelivr.net/gh/vega/altair@78c66bf…["distributions"]This example shows how to make a 2d histogram s…["movies"]
altairAndrews Curveshttps://altair-viz.github.io/gallery/andrews_cu…https://cdn.jsdelivr.net/gh/vega/altair@78c66bf…["advanced calculations"]`Andrews curves <https://en.wikipedia.org/wiki/…["penguins"]
altairAnnual Weather Heatmaphttps://altair-viz.github.io/gallery/annual_wea…https://cdn.jsdelivr.net/gh/vega/altair@78c66bf…["tables"]["seattle_weather"]
altairAnscombe's Quartethttps://altair-viz.github.io/gallery/anscombe_p…https://cdn.jsdelivr.net/gh/vega/altair@78c66bf…["case studies"]`Anscombe's Quartet <https://en.wikipedia.org/w…["anscombe"]

Scroll sideways for all 7 fields.

Examples

Not yet seen in any gallery.

This dataset is published and documented but no Vega, Vega-Lite or Altair example uses it. A new example would be a welcome contribution.

Provenance

Source
License
File
data/gallery-examples.json · 260,222 bytes · View on GitHub