# Visualization confusion - new pie chart layer includes previous layers

**URL:** <https://discuss.elastic.co/t/visualization-confusion-new-pie-chart-layer-includes-previous-layers/117523>\
**Category:** Kibana\
**Created:** [January 29, 2018, 7:45pm UTC](https://discuss.elastic.co/t/visualization-confusion-new-pie-chart-layer-includes-previous-layers/117523 "2018-01-29T19:45:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorj1234](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dorj1234/32/21339_2.png) [@dorj1234](https://discuss.elastic.co/u/dorj1234)\
**Post date:** [January 29, 2018, 7:45pm UTC](https://discuss.elastic.co/t/visualization-confusion-new-pie-chart-layer-includes-previous-layers/117523/1 "2018-01-29T19:45:26Z")

</div>

Hello,  
I hope my screenshots can explain the problem simply. I created a pie chart that forms a range (percentage) of a few slices representing 0-100%  
Each slice counts a separate set. However, see screenshots - each slice includes ALL the previous slices.  
I need each slice to include itself only.  
The UI gets stuck (timeout, never recovers) when I add the 5th layer. It's too much to calculate, since it is "recursively" going through all the previous layers.

This is not my expected behavior. Is there a way to tell the visualization not to include in my slice all the previous ones?

**Screenshot 1 - with only 3 layers**

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/d/6d9c5a591def97ed39b809953597e6d1f75360d7.png)

**Screenshot 2 - with more layers**

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/6/36eb56a1e45faf6957ed2590c2a4ff1cea9b99ee.png)

Best,  
JD

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [January 30, 2018, 3:09am UTC](https://discuss.elastic.co/t/visualization-confusion-new-pie-chart-layer-includes-previous-layers/117523/2 "2018-01-30T03:09:49Z")

</div>

I'm not sure what the relationship is between the different cpu\_util fields that you're splitting the pie chart by. But each layer you add is splitting the previous slices by the new aggregation.

Here's an example that might help. I have data with a geo.src (source location of some messages). If I first split my pie by that (and only taking the default top 5 in this case) I get this pie chart;  
(notice that I clicked on the little arrow under the chart to open this panel with a data table)  
(the highest value in this case is CN with 2555 represented in green)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8e9cf23fb41721d75074210e1867025f2e8572b2.png)

Now it might make sense to split those slices up by the geo-dest (the destination of the messages). I used a Terms aggregation again but it would work the same for the Range aggregation.  
So the outer green at the top right of the pie represents the messages with geo.src=CN and geo.dest=CN because most of the messages in this data set were sent from CN to CN.  
The data table below the pie shows each term of the inner circle split by each term of the outer circle.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a8013649110c1ae81efdd4d1a91a255685c377ac.png)

I don't know if it makes sense with your data to split the buckets of the first aggregation by each of these next terms. It only makes sense if you're trying to see the relationship between the slices of each of those fields.

---

<div class="post-metadata">

**Author:** ![dorj1234](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dorj1234/32/21339_2.png) [@dorj1234](https://discuss.elastic.co/u/dorj1234)\
**Post date:** [January 30, 2018, 5:35am UTC](https://discuss.elastic.co/t/visualization-confusion-new-pie-chart-layer-includes-previous-layers/117523/3 "2018-01-30T05:35:09Z")

</div>

Is there a way to create those rings (=layers) with no relationship between them?  
In their meaning to the person viewing there is a lot of relation between them. However, there is no data-relation between them.

I really like your example, and I will probably find ways to use this, but in my case I just need rings showing unrelated data, each one inside the other. It's powerful intelligence if I could achieve that or "break" the relations.

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [January 30, 2018, 7:12pm UTC](https://discuss.elastic.co/t/visualization-confusion-new-pie-chart-layer-includes-previous-layers/117523/4 "2018-01-30T19:12:42Z")

</div>

No. The only thing you could do would be to create individual pie chart visualizations and arrange them next to each other (or stacked) in a Dashboard.

---

<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:** [February 27, 2018, 7:12pm UTC](https://discuss.elastic.co/t/visualization-confusion-new-pie-chart-layer-includes-previous-layers/117523/5 "2018-02-27T19:12:46Z")

</div>

Closed on February 27, 2018, 7:12pm UTC

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