github-profile-3d-contrib icon indicating copy to clipboard operation
github-profile-3d-contrib copied to clipboard

Python Missing

Open XGavinp opened this issue 1 year ago • 12 comments

Hi,

I really love this feature and have implemented it in my own README but fir some reason it does not show Python in the Pie Chart. Can u help me solve this issue. https://github.com/XGavinp

XGavinp avatar May 31 '24 05:05 XGavinp

This pie chart doesn't actually reflect your overall language usage; rather, it only calculates the primary language for each repository. I think Python doesn't show up in the chart because it appears as the primary language in only a few of your repositories.

https://github.com/yoshi389111/github-profile-3d-contrib/issues/42#issuecomment-1281391310

NarciSource avatar Aug 11 '24 03:08 NarciSource

But all the other languages show.

XGavinp avatar Aug 17 '24 04:08 XGavinp

Can we solve this problem together

yuuki798 avatar Sep 02 '24 16:09 yuuki798

Yes we can

XGavinp avatar Sep 02 '24 16:09 XGavinp

But all the other languages show.

it's takes only the first top 5 langages. you have to edit this line

const languages = userInfo.contributesLanguage.slice(0, 5);

lgmorand avatar Jan 01 '25 10:01 lgmorand

Where do I edit this line?

XGavinp avatar Feb 09 '25 17:02 XGavinp

Either you are lazy (there are maximum 10 ten small files to open), or you don't know how to use the search input on top of this page buddy :) Either way, I'm sure you will find it :)

lgmorand avatar Feb 09 '25 19:02 lgmorand

I have searched all the files and have not found it.

XGavinp avatar Feb 19 '25 04:02 XGavinp

your are looking for changing langages in the pie chart, and there is a file named "https://github.com/yoshi389111/github-profile-3d-contrib/blob/main/src/create-pie-language.ts"

lgmorand avatar Feb 24 '25 06:02 lgmorand

Yes But this is in the Owners Repo I can't change it without access.

XGavinp avatar Feb 24 '25 08:02 XGavinp

of course, as all github projects. you fork it and do your own version or you can do a pull request. that's your requirement, people won't do it for you ;-)

lgmorand avatar Feb 24 '25 18:02 lgmorand

@XGavinp Thank you for your report.

Currently the language pie chart only shows the top 5 languages ​​by contribution.

So languages ​​after 6th are not shown.

Due to limited display space, we need to limit the number of languages ​​shown, and I think the top 5 is a nice round number in that case.

yoshi389111 avatar Mar 07 '25 12:03 yoshi389111