# Vega-Lite Gallery translated to API examples

**URL:** <https://talk.observablehq.com/t/vega-lite-gallery-translated-to-api-examples/10522>\
**Category:** Show and tell\
**Created:** [September 29, 2025, 5:38am UTC](https://talk.observablehq.com/t/vega-lite-gallery-translated-to-api-examples/10522 "2025-09-29T05:38:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krispybird](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/krispybird/32/9660_2.png) [@krispybird](https://talk.observablehq.com/u/krispybird)\
**Post date:** [September 29, 2025, 5:38am UTC](https://talk.observablehq.com/t/vega-lite-gallery-translated-to-api-examples/10522/1 "2025-09-29T05:38:34Z")

</div>

Hi folks,

I had this on the backburner a few years ago and never got to share it, but I have a collection of notebooks that translates the [original Vega-Lite Gallery examples](https://vega.github.io/vega-lite/examples/) from the JSON specification to the newer API format.

The code in the examples preserves the translations as close as possible to help readers understand the conversions between Vega-Lite’s JSON and API versions, so some examples are nonfunctional as an alternative workaround is necessary.

> **[Vega Lite API Example Gallery](https://observablehq.com/collection/@krispybird/vega-lite-api-example-gallery)**
>
> NOTE: THIS IS A WORK IN PROGRESS
> The Vega-Lite Example Gallery has a multitude of examples, but in the JSON spec. This collection of notebooks has the examples converted into the API format
> 
> https://vega.github.io/vega-lite/examples/
