61
General Board / Autocolor legends used flexibly
« on: February 03, 2022, 09:35:33 pm »
The autocolor function of Legends is very useful to show how different elements share the same value, e.g. a status like "Open" or "Closed".
The way to define the colors is to define the color to show for each of the possible values.
This works fine with predefined values like you can use with Status.
However, this works less fine when the value of the related attribute is not easily determined beforehand.
An example of my work now is the name of the ContactPerson as defined for an application.
As soon as the spelling of a name changes or a new value is added, I need to change the definition of the legend.
It would help me very much if it would be possible to have real autocolor as generated by the system.
The way it could work is to pre-define a list of possible colors, determine the list of possible values (dynamically with a query from the database) and assign each value a color from the predefined list, based on the order in the generated list.
Any suggestions on how I could make this myself?
The way to define the colors is to define the color to show for each of the possible values.
This works fine with predefined values like you can use with Status.
However, this works less fine when the value of the related attribute is not easily determined beforehand.
An example of my work now is the name of the ContactPerson as defined for an application.
As soon as the spelling of a name changes or a new value is added, I need to change the definition of the legend.
It would help me very much if it would be possible to have real autocolor as generated by the system.
The way it could work is to pre-define a list of possible colors, determine the list of possible values (dynamically with a query from the database) and assign each value a color from the predefined list, based on the order in the generated list.
Any suggestions on how I could make this myself?