# Vega-lite API version control

**URL:** <https://talk.observablehq.com/t/vega-lite-api-version-control/5987>\
**Category:** Help\
**Created:** [December 21, 2021, 12:19pm UTC](https://talk.observablehq.com/t/vega-lite-api-version-control/5987 "2021-12-21T12:19:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snoopy2024](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/snoopy2024/32/5562_2.png) [@Snoopy2024](https://talk.observablehq.com/u/Snoopy2024)\
**Post date:** [December 21, 2021, 12:19pm UTC](https://talk.observablehq.com/t/vega-lite-api-version-control/5987/1 "2021-12-21T12:19:35Z")

</div>

Hi everybody,

I have been using Vega-lite API V5 (import { vl } from “@vega/vega-lite-api-v5”) and ObservableHQ lately, with growing excitement. Now I’d like to make use of the latest Vega-lite (API?) version 5.2 as it is said to also support xOffset encoding for grouped bar charts. Is this already possible in Observable ?  
And how does the release of new versions work ? Do they always go hand-in-hand for both Vega-lite and Vega-lite API ?

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [December 21, 2021, 8:53pm UTC](https://talk.observablehq.com/t/vega-lite-api-version-control/5987/2 "2021-12-21T20:53:05Z")

</div>

> [@Snoopy2024](#):
>
> Is this already possible in Observable ?

Yes, you can override values when importing from another notebook, by passing in your own values:

```js
vlVersion = '5.2.0'

```

```js
import {vl} with {vlVersion} from '@vega/vega-lite-api-v5'

```

Names can also be aliased:

```js
import {vl} with {myVersion as vlVersion} from '@vega/vega-lite-api-v5'

```

> [@Snoopy2024](#):
>
> And how does the release of new versions work ? Do they always go hand-in-hand for both Vega-lite and Vega-lite API ?

You may want to leave that question as a comment on the notebook, as not all Observable users are active on the forum.
