# Plotting the result of nested aggregations in kibana

**URL:** <https://discuss.elastic.co/t/plotting-the-result-of-nested-aggregations-in-kibana/290074>\
**Category:** Kibana\
**Created:** [November 24, 2021, 1:42pm UTC](https://discuss.elastic.co/t/plotting-the-result-of-nested-aggregations-in-kibana/290074 "2021-11-24T13:42:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [November 24, 2021, 3:11pm UTC](https://discuss.elastic.co/t/plotting-the-result-of-nested-aggregations-in-kibana/290074/2 "2021-11-24T15:11:15Z")

</div>

Unfortunately it's not possible to use the pie chart for this - but you should be able to get it to work using vega: [Vega | Kibana Guide [7.15] | Elastic](https://www.elastic.co/guide/en/kibana/current/vega.html)

It basically allows you to use your existing query, then define a vega spec to render the chart. This is an example of a pie chart in vega, you should be able to combine it with your query: [Pie chart in vega](https://discuss.elastic.co/t/pie-chart-in-vega/260373)

---

_[View the full topic](https://discuss.elastic.co/t/plotting-the-result-of-nested-aggregations-in-kibana/290074)._
