biigle / core

:large_blue_circle: Application core of BIIGLE
https://biigle.de
GNU General Public License v3.0
13 stars 15 forks source link

Use consistent colors for users in project/volume charts #888

Closed dlangenk closed 3 months ago

dlangenk commented 3 months ago

This way the colors are consistent fixes #497

dlangenk commented 3 months ago

What about this one? It uses a much simpler hashing. And it uses HSL color space to have fixed saturation and lightness to produce bright results. However, users with similar colors might occur. Using the id instead of name is not that simple as the information is not available at that point (yet). But I don't see a problem with name.
If we don't want to use a fixed user => color mapping we could just have a list of colors and use that.

mzur commented 3 months ago

One thing I now noticed is that if the users did not annotate in consecutive months, the x-axis is not "to scale", if you know what I mean. Do we think this as a bug or a feature? :smile:

dlangenk commented 3 months ago

For now it's a feature but I guess it's rather a bug ;-)

mzur commented 3 months ago

Ok then I'll create a follow-up issue.