Skip to content

Need explanation of the colors on the timeline when zoomed out #466

Answered by almarklein
Tagirijus asked this question in Q&A
Discussion options

You must be logged in to vote

What is the logic of the order?

In the week/month/year statistics shown in the timeline, each color represents a tag, and they are simply sorted by total duration.

# Turn stats into tuples and sort.
stats_list = [(tag, count) for tag, count in tag_stats.items()]
stats_list.sort(key=lambda x: -x[1])

What is it about the dimmed area and the more bright one?

It is an indication of how much time was spent compared to the total time in that period. I had to look in the source code to see how its actually implemented. It is not a linear relation, because then it'd be just a thin bar most of the time.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Tagirijus
Comment options

@almarklein
Comment options

Answer selected by Tagirijus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants