# Pie chart: top 5 and remove legend

**URL:** <https://community.graylog.org/t/pie-chart-top-5-and-remove-legend/15056>\
**Category:** Graylog Central (peer support)\
**Created:** [April 20, 2020, 1:17pm UTC](https://community.graylog.org/t/pie-chart-top-5-and-remove-legend/15056 "2020-04-20T13:17:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndelle](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@ndelle](https://community.graylog.org/u/ndelle)\
**Post date:** [April 20, 2020, 1:17pm UTC](https://community.graylog.org/t/pie-chart-top-5-and-remove-legend/15056/1 "2020-04-20T13:17:54Z")

</div>

Hi! I am creating a pie chart that contains the request that my apache server receives.But i want to improve how it looks, so i would like to: 1\_Make a top 5 or 10 of the values (i have more than 10 values) 2\_Remove the legend from the botton of the graph (it have several values so with the legend i have to make the widget incredible big to visualize the graph correctly). Is it posible?

---

<div class="post-metadata">

**Author:** ![macko003](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/macko003/32/3175_2.png) [@macko003](https://community.graylog.org/u/macko003)\
**Post date:** [April 21, 2020, 10:04am UTC](https://community.graylog.org/t/pie-chart-top-5-and-remove-legend/15056/2 "2020-04-21T10:04:34Z")

</div>

Based on you version, yes, it is possible.  
Check the edit option of quick values.

---

<div class="post-metadata">

**Author:** ![ndelle](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@ndelle](https://community.graylog.org/u/ndelle)\
**Post date:** [April 21, 2020, 7:26pm UTC](https://community.graylog.org/t/pie-chart-top-5-and-remove-legend/15056/3 "2020-04-21T19:26:32Z")

</div>

I didn’t specify the version, it is 3.2, sorry for that. The quick values option was removed from this new version. I managed to find the top x option (click on the value that you choose as rows) but it’s still missing the ability to hide the legend because for some reason i have to make my graph too big if i want to see the pie chart mostly because of the legend that each value represents. Do you know if there is an option in the lastest version to make this change?

---

<div class="post-metadata">

**Author:** ![abraxas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/abraxas/32/4024_2.png) [@abraxas](https://community.graylog.org/u/abraxas)\
**Post date:** [April 21, 2020, 10:08pm UTC](https://community.graylog.org/t/pie-chart-top-5-and-remove-legend/15056/4 "2020-04-21T22:08:31Z")

</div>

Hey @ndelle based on a question I recently asked it looks like it is not possible to remove the legend today but that it will likely be a future capability: [Can legends be removed from widgets?](https://community.graylog.org/t/can-legends-be-removed-from-widgets/14901)

For the `top n` option it seems like you found how to do that but if not you do click the item in the `row` field and can select a number there.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![ndelle](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@ndelle](https://community.graylog.org/u/ndelle)\
**Post date:** [April 21, 2020, 11:16pm UTC](https://community.graylog.org/t/pie-chart-top-5-and-remove-legend/15056/5 "2020-04-21T23:16:59Z")

</div>

@abraxas your post was one of the ones i saw while searching for this before asking here. Thanks for the answer! I will working on other things while we wait for the new version with the change.  
I found the top option earlier, but thanks for point it out anyway.  
Any moderator can close this topic if you want.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [May 5, 2020, 11:17pm UTC](https://community.graylog.org/t/pie-chart-top-5-and-remove-legend/15056/6 "2020-05-05T23:17:01Z")

</div>

Closed on May 5, 2020, 11:17pm UTC

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