I want to use the “COLOURED BY” command together with RETURN. What kind of variable does this command expect? I tried various numbers or variables but the color of the indicator doesn’t change. COLOURED(255,0,0) works and makes the indicator red but I want the color be depending on a variable.
Anybody?
It’s R, G, B, Fade parameters, in that order. Fade may be omitted, with values 255 being max visibility and 0 invisibile.
This does not work Roberto. If I use just COLOURED (without BY) it expects RGB values but if one adds BY it should expect a variable (it doesn’t accept RGB) and according to this variable change color but no matter what variable value i have there it is always black. 🙁
Does this work?
Variables: a, b, c
If (variable a) then
Return XX coloured (255,0,0) as “Name”
elsif (Variable b) then
Return XX coloured (0,255,0) as “Name”
elsif (Variable c) then
Return XX coloured (0,o,) 255 “Name”
Endif
The “coloured by” uses the colours for up and down, as in the green for up and red for down. If you only need two colours that works well.
The first mail didn’t help, the second I don’t understand. I think. I would only need 2 colors but how do I choose them?
COLOURED
The Prorealcode link to how to use COLOURED BY.
It uses the colours you select when you colour a line. ie the 1 is up and the -1 is down, as in a bar chart where the up is green and the red down.