# How to go from JSON-based aggregation to UI visualization?

**URL:** <https://discuss.elastic.co/t/how-to-go-from-json-based-aggregation-to-ui-visualization/324774>\
**Category:** Kibana\
**Created:** [February 6, 2023, 8:42am UTC](https://discuss.elastic.co/t/how-to-go-from-json-based-aggregation-to-ui-visualization/324774 "2023-02-06T08:42:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinrik](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tinrik](https://discuss.elastic.co/u/tinrik)\
**Post date:** [February 6, 2023, 8:42am UTC](https://discuss.elastic.co/t/how-to-go-from-json-based-aggregation-to-ui-visualization/324774/1 "2023-02-06T08:42:15Z")

</div>

Hi,

In the Kibana documentation about aggregations, there is only information about how to write a JSON query and get an aggregated result.

However I cannot find any documentation on how to go from there to a UI visualization (Lens, Aggregation-based, you name it) that uses that JSON-based aggregation. How can it be done?

My use case is to display a table of aggregated data. Lens and Aggregation-based tables are not powerful enough to support my use case - I need to use the raw JSON code to create my aggregation. I cannot use Vega either, since it does not support visualizing tables.

Thanks!

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [February 6, 2023, 9:56am UTC](https://discuss.elastic.co/t/how-to-go-from-json-based-aggregation-to-ui-visualization/324774/2 "2023-02-06T09:56:08Z")

</div>

Hi @tinrik

can you explain with some more details what kind of aggregation you need to perform?  
It is really hard to provide any guidance for a "universal" case.

---

<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:** [March 6, 2023, 9:56am UTC](https://discuss.elastic.co/t/how-to-go-from-json-based-aggregation-to-ui-visualization/324774/3 "2023-03-06T09:56:27Z")

</div>

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