# Kibana pie chart with slices for different frequency values

**URL:** <https://discuss.elastic.co/t/kibana-pie-chart-with-slices-for-different-frequency-values/305175>\
**Category:** Kibana\
**Created:** [May 19, 2022, 11:00am UTC](https://discuss.elastic.co/t/kibana-pie-chart-with-slices-for-different-frequency-values/305175 "2022-05-19T11:00:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaime\_Fernandez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaime_fernandez/32/97944_2.png) [@Jaime\_Fernandez](https://discuss.elastic.co/u/Jaime_Fernandez)\
**Post date:** [May 19, 2022, 11:00am UTC](https://discuss.elastic.co/t/kibana-pie-chart-with-slices-for-different-frequency-values/305175/1 "2022-05-19T11:00:17Z")

</div>

Hi,

I have an ES index where each document represents a user login. The document contains a "user\_id" field (the other fields are not relevant).

I need to show a pie chart in kibana with the following slices:

- "1" with the number of users logged only once during the interval.
- "2" with the number of users logged twice during the interval.
- "3" with the number of users logged three times during the interval.
- ...
- "+10" with the number of users logged more than 10 times during the interval.

It's very easy to build a pie chart with a slice per user and the count of documents for that user. But that's not what I need. I'm a newbie in Elasticsearch and I don't even know if it's feasible to achieve this goal, or we need to have some preprocessing.

Thanks in advance, Jaime

---

<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:** [June 16, 2022, 11:00am UTC](https://discuss.elastic.co/t/kibana-pie-chart-with-slices-for-different-frequency-values/305175/2 "2022-06-16T11:00:25Z")

</div>

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