# How can I visualize aggregation buckets using vega (not vega-lite)

**URL:** <https://discuss.elastic.co/t/how-can-i-visualize-aggregation-buckets-using-vega-not-vega-lite/194336>\
**Category:** Kibana\
**Created:** [August 7, 2019, 10:35pm UTC](https://discuss.elastic.co/t/how-can-i-visualize-aggregation-buckets-using-vega-not-vega-lite/194336 "2019-08-07T22:35:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![anelson-edge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anelson-edge/32/52865_2.png) [@anelson-edge](https://discuss.elastic.co/u/anelson-edge)\
**Post date:** [August 8, 2019, 2:29pm UTC](https://discuss.elastic.co/t/how-can-i-visualize-aggregation-buckets-using-vega-not-vega-lite/194336/3 "2019-08-08T14:29:33Z")

</div>

Thank you for the links.  
I had already seen both of the pages you linked to, and I still have some newbie questions.  
AFAICT, format only applies to vega-lite, and not vega/v3. Is that right?  
If that is not right, then can you explain to me how to change the kibana-vega I posted so that it works?

I tried to make a self-contained example here:

> <https://gist.github.com/anelson-vidscale/9a6927cdd19d1b920e3bf23a91252667>

  
Since I'm having such troubles making the data display, can you give me full working example based on the gist I posted one line above this one?

---

_[View the full topic](https://discuss.elastic.co/t/how-can-i-visualize-aggregation-buckets-using-vega-not-vega-lite/194336)._
