# Vega lite viz

**URL:** <https://discuss.elastic.co/t/vega-lite-viz/250652>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [October 1, 2020, 11:05am UTC](https://discuss.elastic.co/t/vega-lite-viz/250652 "2020-10-01T11:05:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![suibgui](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@suibgui](https://discuss.elastic.co/u/suibgui)\
**Post date:** [October 1, 2020, 11:05am UTC](https://discuss.elastic.co/t/vega-lite-viz/250652/1 "2020-10-01T11:05:16Z")

</div>

hello,  
i want to Create a bar visualisation with vega lite , i'm writing this code but no data showing in the visualisation.

`  
{  
"$schema": "[https://vega.github.io/schema/vega-lite/v2.json](https://vega.github.io/schema/vega-lite/v2.json)",

"data":  
{  
"url": {  
"%context%": true,  
"index": "index-name"  
},  
},  
"mark": "bar",  
"encoding":  
{  
"x":  
{  
"field": "new\_date",  
"type": "temporal"  
},  
"y":  
{  
"field":"surv5",  
"aggregate": "sum",  
"type": "nominal"  
}

}  
}

`

any help ?  
thanks.

---

<div class="post-metadata">

**Author:** ![myasonik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/myasonik/32/62369_2.png) [@myasonik](https://discuss.elastic.co/u/myasonik)\
**Post date:** [October 5, 2020, 4:36pm UTC](https://discuss.elastic.co/t/vega-lite-viz/250652/2 "2020-10-05T16:36:09Z")

</div>

Hey @suibgui!

From the config you posted, I don't see anything immediately wrong but if you haven't seen, maybe comparing with our guide can help you get something working. [https://www.elastic.co/guide/en/kibana/current/vega-lite-tutorial.html](https://www.elastic.co/guide/en/kibana/current/vega-lite-tutorial.html)

Also covered in that guide are some debugging steps so hopefully those can help get your visualization working!

---

<div class="post-metadata">

**Author:** ![suibgui](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@suibgui](https://discuss.elastic.co/u/suibgui)\
**Post date:** [October 6, 2020, 9:15am UTC](https://discuss.elastic.co/t/vega-lite-viz/250652/3 "2020-10-06T09:15:44Z")

</div>

thank you

---

<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:** [November 3, 2020, 9:15am UTC](https://discuss.elastic.co/t/vega-lite-viz/250652/4 "2020-11-03T09:15:47Z")

</div>

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