# Error in vega-lite debug

**URL:** <https://discuss.elastic.co/t/error-in-vega-lite-debug/208822>\
**Category:** Kibana\
**Created:** [November 21, 2019, 7:21am UTC](https://discuss.elastic.co/t/error-in-vega-lite-debug/208822 "2019-11-21T07:21:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![msk\_76](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@msk\_76](https://discuss.elastic.co/u/msk_76)\
**Post date:** [November 21, 2019, 7:21am UTC](https://discuss.elastic.co/t/error-in-vega-lite-debug/208822/1 "2019-11-21T07:21:58Z")

</div>

**I am trying to use vega-lite with kibana but on the time\_stamp field of my index, I am getting following error in VEGA\_DEBUG**  
**[Violation] 'setInterval' handler took 107ms**  
**it keep on repeating.**

\*\*The data doesn't show up in the graph but axis names are there in the graph.. \*\*

**My vega-lite config is**

```auto
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "title": "Event counts from all indexes",
  "data": {
    "url": {
      "index": "flexlm_license_usage-201911",
      "body": {
        "size": 100,
// "sort": [{"timestamp": {"order": "desc"}}],
        "query": { range: {
            timestamp: {gte: "2019-11-19 10:00:00", lte: "2019-11-19 10:05:00"} }
          } 
      }
    },
    "format": {"property": "hits.hits"}
  },
  "mark": "bar",
  "encoding": {
    "x": {"field": "_source.time_stamp", "type": "temporal", "axis": {"title": false}},
    "y": {
      "field": "doc_count",
      "type": "quantitative",
      "axis": {"title": "Document count"}
    }
  }
}

```

**The data from query is**  
**Query**

```auto
GET flexlm_license_usage-201911/_search

{
"query": { range: {
            timestamp: {gte: "2019-11-19 10:00:00", lte: "2019-11-19 10:05:00"} }
          }
}

```

Data

```auto
{
  "took" : 519,
  "timed_out" : false,
  "_shards" : {
    "total" : 2,
    "successful" : 2,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : 139433624,
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "flexlm_license_usage-201911",
        "_type" : "doc",
        "_id" : "agrlx218 ctolx622 ctolx623_cdslmd_Xcelium_SC_DMS_Option__danicant_gnbsx50536_1573272900000",
        "_score" : 1.0,
        "_source" : {
          "time_stamp_utc" : 1573272900000,
          "year_month" : "201911",
          "lic_site_name" : "-",
          "time_stamp" : "2019-11-09T05:15:00+0100",
          "lic_vendor_name" : "cdslmd",
          "user_name" : "danicant",
          "minute_of_day" : 315,
          "lic_server_name" : "agrlx218 ctolx622 ctolx623",
          "interval_period" : 300,
          "lic_server_master" : "ctolx622",
          "lic_reserved" : 0,
          "plc_id" : "-",
          "lic_usage" : 1,
          "lic_feature_name" : "Xcelium_SC_DMS_Option",
          "host_name" : "gnbsx50536",
          "day_of_week" : 6
        }
      },
      {
        "_index" : "flexlm_license_usage-201911",
        "_type" : "doc",
        "_id" : "agrlx218 ctolx622 ctolx623_snpslmd_VCSMXRunTime_Net__pistoria_ctosx00212_1573272900000",
        "_score" : 1.0,
        "_source" : {
          "time_stamp_utc" : 1573272900000,
          "year_month" : "201911",
          "lic_site_name" : "-",
          "time_stamp" : "2019-11-09T05:15:00+0100",
          "lic_vendor_name" : "snpslmd",
          "user_name" : "pistoria",
          "minute_of_day" : 315,
          "lic_server_name" : "agrlx218 ctolx622 ctolx623",
          "interval_period" : 300,
          "lic_server_master" : "ctolx622",
          "lic_reserved" : 0,
          "plc_id" : "-",
          "lic_usage" : 1,
          "lic_feature_name" : "VCSMXRunTime_Net",
          "host_name" : "ctosx00212",
          "day_of_week" : 6
        }
      },
      {
        "_index" : "flexlm_license_usage-201911",

```

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [November 21, 2019, 1:24pm UTC](https://discuss.elastic.co/t/error-in-vega-lite-debug/208822/2 "2019-11-21T13:24:52Z")

</div>

Hey @msk_76,

Your y-axis is looking for a field called `doc_count`, but your query doesn't return any documents with `doc_count` property.

Do you want to do an aggregation instead?

---

<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 19, 2019, 1:25pm UTC](https://discuss.elastic.co/t/error-in-vega-lite-debug/208822/3 "2019-12-19T13:25:01Z")

</div>

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