# Vega diagram autorefresh in Kibana

**URL:** <https://discuss.elastic.co/t/vega-diagram-autorefresh-in-kibana/188988>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [July 5, 2019, 2:57am UTC](https://discuss.elastic.co/t/vega-diagram-autorefresh-in-kibana/188988 "2019-07-05T02:57:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lei.wang](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@lei.wang](https://discuss.elastic.co/u/lei.wang)\
**Post date:** [July 5, 2019, 2:57am UTC](https://discuss.elastic.co/t/vega-diagram-autorefresh-in-kibana/188988/1 "2019-07-05T02:57:21Z")

</div>

How to make vega virtualization can be autorefreshed after a interval like other form of virtualization in Kibana.

I'm using Kibana 6.2.2

and, I set my data query like this in vega. I use "now-11m/m" and "now-1m/m“ to get the 10 minutes timeframe data, and want it to be autorefreshed by 1 minute. How to get it ?

```auto
      "url": {
        "index": "cause_all*",
        "body": {
          "query": {
            "bool": {
              "must": [
                {
                  "range":{
                    "anomtime":{
                      "time_zone": "+08:00",
                      "gte":"now-11m/m",
                      "lt": "now-1m/m"
                    }
                  }
                },
                {
                  "range":{
                    "corrratio":{
                      "gte":0.9
                    }
                  }
                }
              ]
            }
          }
        }
      }

```

Regards,  
Lei.W

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 16, 2019, 4:14pm UTC](https://discuss.elastic.co/t/vega-diagram-autorefresh-in-kibana/188988/2 "2019-07-16T16:14:43Z")

</div>

@nyuriks - do u think u can help here ?  
Thanks  
Rashmi

---

<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:** [August 13, 2019, 4:14pm UTC](https://discuss.elastic.co/t/vega-diagram-autorefresh-in-kibana/188988/3 "2019-08-13T16:14:45Z")

</div>

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