# Trying to implement pie chart logic

**URL:** <https://discuss.elastic.co/t/trying-to-implement-pie-chart-logic/256459>\
**Category:** Kibana\
**Created:** [November 24, 2020, 7:52am UTC](https://discuss.elastic.co/t/trying-to-implement-pie-chart-logic/256459 "2020-11-24T07:52:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelacc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michaelacc/32/79588_2.png) [@michaelacc](https://discuss.elastic.co/u/michaelacc)\
**Post date:** [November 24, 2020, 7:52am UTC](https://discuss.elastic.co/t/trying-to-implement-pie-chart-logic/256459/1 "2020-11-24T07:52:43Z")

</div>

Hello Everyone! I'm a new user of ELK stack, its looking really powerful and a bit challenging, however I would like to ask you about one thing related to kibana visualizations.

I'm currently trying to implement a visual representation of this logic:

we've logs containing ID of a store, till number (every store may have 1-20 till numbers) and event type. I would like to implement a pie chart showing healthness of each store based on logs containing certain event types, so to classify a store as a healthy each of its tills would need to have 6 logs containing certain different event type. Classifying store as unhealthy would be an opposite to logic above (not all 6 logs are present).

Could you please advise some tips on how to implement such logic in pie chart or maybe I should choose different visualization for such case?

Thank you for any help.

Best regards,

Michael

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [November 26, 2020, 11:29am UTC](https://discuss.elastic.co/t/trying-to-implement-pie-chart-logic/256459/2 "2020-11-26T11:29:34Z")

</div>

Hi Michael,  
Let me ask a few questions about your case:

- the scope of your visualization is to highlight which store is healthy and which is not healthy? like a list of healthy store and a list of non-healthy?
- is the healthy just a boolean metric (if the store has these 6 event types or more is healthy, if less than 6 is unhealthy) or the healthy is a variable that can describe the level of healthyness?

---

<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:** [December 24, 2020, 11:29am UTC](https://discuss.elastic.co/t/trying-to-implement-pie-chart-logic/256459/3 "2020-12-24T11:29:36Z")

</div>

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