github-readme-stats icon indicating copy to clipboard operation
github-readme-stats copied to clipboard

[Feature request] Add "Other" to top-lang card

Open Andrew-J-Larson opened this issue 3 years ago • 3 comments

Describe the solution you'd like An option for the Language Card that specifically allows showing an "Other" percentage when limiting the amount of languages shown via langs_count. Additionally, it may be useful for it to be the 10th "language" when someone has used more than 10 languages in their GitHub account.

Describe alternatives you've considered There's really no alternative within the current functionality for the top-lang card.

Additional context Add any other context or screenshots about the feature request here.

Andrew-J-Larson avatar Jan 23 '22 14:01 Andrew-J-Larson

Hey I would like to implement this

I will have to modify this function right ? https://github.com/anuraghazra/github-readme-stats/blob/master/src/cards/top-languages-card.js#L205

RedHeadphone avatar Oct 04 '22 06:10 RedHeadphone

@RedHeadphone Great that you found an issue you can work on for this year's Hacktoberfest! 🎉 You are correct. If we want to sum up the remaining languages, we should change the filter function and return an "other" object.

rickstaa avatar Oct 04 '22 08:10 rickstaa