# How to visiualize topmost contributors to a git repo?

**URL:** <https://discuss.elastic.co/t/how-to-visiualize-topmost-contributors-to-a-git-repo/216559>\
**Category:** Kibana\
**Created:** [January 26, 2020, 7:30am UTC](https://discuss.elastic.co/t/how-to-visiualize-topmost-contributors-to-a-git-repo/216559 "2020-01-26T07:30:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fenster25](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fenster25/32/55546_2.png) [@fenster25](https://discuss.elastic.co/u/fenster25)\
**Post date:** [January 26, 2020, 7:30am UTC](https://discuss.elastic.co/t/how-to-visiualize-topmost-contributors-to-a-git-repo/216559/1 "2020-01-26T07:30:12Z")

</div>

I am trying to visualize a pie chart with kibana of the top contributors to a git repo using PR data. I pull all the PRs of a single repo and index the json to ES. A document can look like this

```
{
      "Author" : "palash25",
      "Date" : "2012-10-04T07:52:20Z",
      "Number" : 2539410,
      "IsMerged" : false,
      "MergedBy" : "",
      "Body" : ""
    }

```

This is my kibana setting and the rendered chart

 ![discuss](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9df23d666f0aefaec97d6ce12c944c2489f1bc65.png)

It only shows equal slices belonging to authors with just one PR and excludes authors with the most number of PRs.

I am not sure what I am doing wrong, I thought a terms aggregation on the author field would seperate all the PR docs into a seperate bucket for each author and then a metric aggregation based on count would return the buckets with the most number of docs but it doesn't seem to happen. What is wrong here?

Am I modelling the json wrong or using the wrong aggregations?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [January 28, 2020, 3:48pm UTC](https://discuss.elastic.co/t/how-to-visiualize-topmost-contributors-to-a-git-repo/216559/2 "2020-01-28T15:48:19Z")

</div>

To me that looks like the correct settings for the pie chart to display the top 15 contributors by number. Can you display the same thing in a Data table so we can see if it shows the same data?

---

<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 25, 2020, 3:48pm UTC](https://discuss.elastic.co/t/how-to-visiualize-topmost-contributors-to-a-git-repo/216559/3 "2020-02-25T15:48:26Z")

</div>

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