Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Display top contributors correctly when larger than chart #182

Merged
merged 3 commits into from
Aug 3, 2022

Conversation

DenverCoder1
Copy link
Contributor

@DenverCoder1 DenverCoder1 commented Mar 29, 2022

Fixes a major bug in the authors graph where if there are many contributors, only contributors from the bottom of the list get displayed.

This corrects the list to show the top contributors and "others" when the number of contributors is larger than the chart.

Fixes #178
Fixes #126

Example of old chart (wrong)

Does not display "others" and only shows contributors with below 1% of contributions. Top contributors are missing.

image

Example of fixed chart

Number of contributors displayed is based on the diameter of the chart. "Others" will always be shown when the number of contributors exceeds the maximum.

image

@DenverCoder1 DenverCoder1 marked this pull request as draft June 7, 2022 14:22
@DenverCoder1 DenverCoder1 force-pushed the fix-top-contributors branch from e8d6408 to 95176ae Compare June 7, 2022 14:31
@DenverCoder1 DenverCoder1 marked this pull request as ready for review June 7, 2022 15:32
@DenverCoder1
Copy link
Contributor Author

DenverCoder1 commented Jun 7, 2022

@IonicaBizau Mind taking a look at this? I've rebased the PR and resolved conflicts after the recent changes.

Thanks!

@IonicaBizau IonicaBizau mentioned this pull request Aug 3, 2022
@IonicaBizau IonicaBizau merged commit 57f4088 into IonicaBizau:master Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants