# adjusting the time scale for vega lite

**URL:** <https://talk.observablehq.com/t/adjusting-the-time-scale-for-vega-lite/4275>\
**Category:** Help\
**Created:** [December 6, 2020, 11:23am UTC](https://talk.observablehq.com/t/adjusting-the-time-scale-for-vega-lite/4275 "2020-12-06T11:23:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EE2dev](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/ee2dev/32/695_2.png) [@EE2dev](https://talk.observablehq.com/u/EE2dev)\
**Post date:** [December 6, 2020, 11:23am UTC](https://talk.observablehq.com/t/adjusting-the-time-scale-for-vega-lite/4275/1 "2020-12-06T11:23:13Z")

</div>

I would like to set the domain to start 1 day before the extent of the data and end one day after.

See cell in stackedBar

> **[Vega lite - scales](https://observablehq.com/d/15a5b060374a6a03)**

1. what am I missing when i tried to change the scale?

2. what is a good way to debug this so next time, I can try to find this out by myself 🙂  
(I tried to use the vl.toJSON() function to output the JSON output -as suggested in [Charting with Vega-Lite / Observable / Observable](https://observablehq.com/@observablehq/vega-lite) - but this function seems to not be part of the API any more.

Any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![EE2dev](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/ee2dev/32/695_2.png) [@EE2dev](https://talk.observablehq.com/u/EE2dev)\
**Post date:** [December 8, 2020, 5:30pm UTC](https://talk.observablehq.com/t/adjusting-the-time-scale-for-vega-lite/4275/2 "2020-12-08T17:30:01Z")

</div>

fixed it now - the link works now.

Still not sure to to print the vl object to JSON, that would help debugging.
