One idea would be specifying neutral color. Other idea would be to be able to specify max or min value by yourself, this way one can avoid unexpected situations. For Example in my case I knew that min value is 0. This means that only max is calculated and if it’s the same as min you use minColor if it’s different it automatically becomes maxColor.
Uko
On 23 Jun 2014, at 13:30, Richard Wettel wettel@gmail.com wrote:
Hi Uko
I thought about this before. What would be a decent handling of such a case? Choose the color for the lowest value? For the highest? Or compute the average color? For example: What would the user expect when specifying the color from red (for minimum) to blue (for maximum) and all the values are? All red, all blue, or all violet? I could not find the "natural" answer to this question.
Something I can imagine is that the API is allowing us to set a neutral color, but I am not sure about this. I am however open for discussing it.
Cheers Ricky
On Fri, Jun 20, 2014 at 12:16 PM, Yuriy Tymchuk yuriy.tymchuk@me.com wrote: Hi,
I encountered a problem in CodeCite that arises when you are using ColorNormalizer and all values are the same (so you cannot scale anything). Is there a standard way to handle that, or I need implement something myself?
Uko _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev