# Sub objects vega lite

**URL:** <https://discuss.elastic.co/t/sub-objects-vega-lite/133343>\
**Category:** Kibana\
**Created:** [May 25, 2018, 4:11pm UTC](https://discuss.elastic.co/t/sub-objects-vega-lite/133343 "2018-05-25T16:11:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)\
**Post date:** [June 8, 2018, 5:28pm UTC](https://discuss.elastic.co/t/sub-objects-vega-lite/133343/4 "2018-06-08T17:28:14Z")

</div>

Apologies for the late reply. Check out Yuri's suggestions in this thread:

> [@Kibana vega viz plug-in:multiple aggregations: how-to?](https://discuss.elastic.co/t/kibana-vega-viz-plug-in-multiple-aggregations-how-to/121893/2):
>
> @nielsen-at-cgt Vega-Lite does not have a good built-in handling of nested data results, so I would advise you use [composite aggregation](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html). See an example in the video linked from the recent [Vega blog post](https://www.elastic.co/blog/custom-vega-visualizations-in-kibana). If you need to process nested data, you can use full Vega language instead - the ["group" mark](https://vega.github.io/vega/docs/marks/) can be used to draw pre-faceted data.

---

_[View the full topic](https://discuss.elastic.co/t/sub-objects-vega-lite/133343)._
