JonathanHeuer
8 years agoQrew Cadet
Assign random colors to events in new Calendar report
The new Calendar chart offers the ability to assign colors to events. That is, I'd like to visually differentiate records on this chart by color, but I don't care what color they are. I'd like to assign RANDOM colors to my events, which are appointments by certain personnel. My Appointments table looks up at my Personnel table, so I could laboriously assign each Personnel a hex color, look up to it, and assign the color for that event using the formula field in the new calendar chart builder.
But I'm lazy.
Can anyone suggest a random color assignment method? Might there be a way of generating a color based on some unique value in the Personnel table (record ID)? Maybe by looking up at a Color table created with data like this https://jonasjacek.github.io/colors/? There are 256 colors in this table, more than my active Personnel, so that would work if I knew a way to convert Record ID to a unique number between 1 and 256.
But I'm lazy.
Can anyone suggest a random color assignment method? Might there be a way of generating a color based on some unique value in the Personnel table (record ID)? Maybe by looking up at a Color table created with data like this https://jonasjacek.github.io/colors/? There are 256 colors in this table, more than my active Personnel, so that would work if I knew a way to convert Record ID to a unique number between 1 and 256.