# Cannot see data from an index based url - why isn't this scatterchart working?

**URL:** <https://discuss.elastic.co/t/cannot-see-data-from-an-index-based-url-why-isnt-this-scatterchart-working/172577>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [March 15, 2019, 4:59pm UTC](https://discuss.elastic.co/t/cannot-see-data-from-an-index-based-url-why-isnt-this-scatterchart-working/172577 "2019-03-15T16:59:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgolubov55](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mgolubov55](https://discuss.elastic.co/u/mgolubov55)\
**Post date:** [March 15, 2019, 4:59pm UTC](https://discuss.elastic.co/t/cannot-see-data-from-an-index-based-url-why-isnt-this-scatterchart-working/172577/1 "2019-03-15T16:59:12Z")

</div>

No errors reported - I just cannot see the data.  
A similar chart works for the same index in Vega-Lite (????)

{  
"$schema": "[https://vega.github.io/schema/vega/v3.json](https://vega.github.io/schema/vega/v3.json)",  
"width": 499,  
"height": 499,  
"padding": 5,  
"autosize": "pad",

"data": [  
{  
"name": "source",

```
  url: {
  # The %-enclosed keys are handled by Kibana to modify the query
  # before it gets sent to Elasticsearch. Context is the search
  # filter as shown above the dashboard. Timefield uses the value 
  # of the time picker from the upper right corner.
  %context%: true
  %timefield%: @timestamp
  index: pricescattertest-*
  body: {
    size: 10000
    _source: ["@timestamp", "price", "quantity", "cluster"]
  }
}
   "format": { "property": "hits.hits" }

}

```

],

"scales": [  
{  
"name": "x",  
"type": "linear",  
"round": true,  
"nice": true,  
"zero": true,  
"domain": {"data": "source", "field": "price"},  
"range": "width"  
},  
{  
"name": "y",  
"type": "linear",  
"round": true,  
"nice": true,  
"zero": true,  
"domain": {"data": "source", "field": "quantity"},  
"range": "height"  
},  
{  
"name": "size",  
"type": "linear",  
"round": true,  
"nice": false,  
"zero": true,  
"domain": {"data": "source", "field": "cluster"},  
"range": [4,361]  
}  
],

"axes": [  
{  
"scale": "x",  
"grid": true,  
"domain": false,  
"orient": "bottom",  
"tickCount": 20,  
"title": "Price"  
},  
{  
"scale": "y",  
"grid": true,  
"domain": false,  
"orient": "left",  
"titlePadding": 5,  
"title": "Quantity"  
}  
],

"legends": [  
{  
"size": "size",  
"title": "Clusters",  
"format": "s",  
"encode": {  
"symbols": {  
"update": {  
"strokeWidth": {"value": 2},  
"opacity": {"value": 0.5},  
"stroke": {"value": "#4682b4"},  
"shape": {"value": "circle"}  
}  
}  
}  
}  
],

"marks": [  
{  
"name": "marks",  
"type": "symbol",  
"from": {"data": "source"},  
"encode": {  
"update": {  
"x": {"scale": "x", "field": "price"},  
"y": {"scale": "y", "field": "quantity"},  
"size": {"scale": "size", "field": "cluster"},  
"shape": {"value": "circle"},  
"strokeWidth": {"value": 2},  
"opacity": {"value": 0.5},  
"stroke": {"value": "#4682b4"},  
"fill": {"value": "transparent"}  
}  
}  
}  
]  
}

---

<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:** [April 12, 2019, 4:59pm UTC](https://discuss.elastic.co/t/cannot-see-data-from-an-index-based-url-why-isnt-this-scatterchart-working/172577/2 "2019-04-12T16:59:13Z")

</div>

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