muety / wakapi

📊 A minimalist, self-hosted WakaTime-compatible backend for coding statistics

Home Page:https://wakapi.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[languages chart] show other languages merged as “other”

tippfehlr opened this issue · comments

Right now, unless the number of languages displayed is set to the max, the percentage of languages is wrong.

This would suggest I only coded in Typescript:
image

But in reality, Typescript is less than half of my time coding.
image

Proposed change:
merge other languages into “other”
Screenshot_20240106_125349

Hi @tippfehlr, thanks for bringing this up. But, frankly, I don't see much of a benefit in the solution you proposed. The way I interpret the functionality is: when decrementing the number of languages shown (e.g. to 5), you're saying "give me my top 5 languages" and among those top five, every language has its respective percentage, regardless of the overall, global coding time. If you opt to only show one language, you're requesting your "top 1 languages", and among those, TypeScript has a share of 100 %.

Sure, but I don't get the reason to show the percentage of the top language in relation to only the top two languages.

Maybe a switch next to the languages number that toggles this on or off? (eg. relative to total)

I would like to implement this and learn go a bit on the way, and I guess this wouldn't be too hard. What do you think?

Sure, but I don't get the reason to show the percentage of the top language in relation to only the top two languages.

Fair point, but I don't get the reason for showing some languages in comparison to "other" vs. showing them in comparison to the actual languages either. The only "benefit" would be the pie chart looking less "busy", or am I missing something here?

The only "benefit" would be the pie chart looking less "busy"

This, and especially the text to the right.

I think having the option to keep them in one column (but still relative to all) might be good.

EDIT: By default, at least for me, Wakapi only displays one column. I would still expect that the relative time is correct. Also, an indicator that there were more languages would be neat I think.

Definitely agree that there should be a hint indicating that there are more languages to show, perhaps alongside a (very small and subtle) show all button or icon. But would like to keep the "filtering" mechanism as is.

Thanks <3