# Syncronize vega-lite timestamp with kibana chart's timestamp

**URL:** <https://discuss.elastic.co/t/syncronize-vega-lite-timestamp-with-kibana-charts-timestamp/256082>\
**Category:** Kibana\
**Created:** [November 20, 2020, 8:05am UTC](https://discuss.elastic.co/t/syncronize-vega-lite-timestamp-with-kibana-charts-timestamp/256082 "2020-11-20T08:05:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shin1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@shin1](https://discuss.elastic.co/u/shin1)\
**Post date:** [November 20, 2020, 8:05am UTC](https://discuss.elastic.co/t/syncronize-vega-lite-timestamp-with-kibana-charts-timestamp/256082/1 "2020-11-20T08:05:43Z")

</div>

Hi Experts,

I'm writing a scatter plots in vega-lite now and it's on a dashboard contining many kibana charts.  
One of the charts on the doashboard changes every 1 second and I would like the other charts to synchronize the timestamp(x axis) with it.  
How can I achieve that?  
I have no idea how to access different chart's timestampe range and to set/change the current time range.... 😢

Many thanks in advance,  
Cheers,  
Shin

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [November 26, 2020, 10:33am UTC](https://discuss.elastic.co/t/syncronize-vega-lite-timestamp-with-kibana-charts-timestamp/256082/2 "2020-11-26T10:33:01Z")

</div>

Hi shin  
In the `data.url` configuration you can specify a special parameter that includes the required range for an ES query thats use the dashboard filters and time range

Kibana has a special handling for the fields surrounded by "%". They are processed before the the query is sent to Elasticsearch. This way the query becomes context aware, and can use the time range and the dashboard filters.

```auto
  data: {
    url: {
      // Apply dashboard context filters when set
      %context%: true
      // Filter the time picker (upper right corner) with this field
      %timefield%: @timestamp
   ....
   your es query

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 24, 2020, 10:33am UTC](https://discuss.elastic.co/t/syncronize-vega-lite-timestamp-with-kibana-charts-timestamp/256082/3 "2020-12-24T10:33:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
