color in colums
hey guys...
i have a colum that has this type of data..
1.3.6.1.4.1.476.1.42.3.2.4.1
1.3.6.1.4.1.476.1.42.3.2.4.2
1.3.6.1.4.1.476.1.42.3.2.4.2.1
1.3.6.1.4.1.476.1.42.3.2.4.2.2
1.3.6.1.4.1.476.1.42.3.2.4.2.3
i would like:
1.3.6.1.4.1.476.1.42.
black
the range
3.2.4.
to be say gray
then say the .1 rang to be blue .2 to be green and so on...
i have tried below. but its not a real number...
any help on how to do this would be awsome!
function myColor(){
var value = this.getItemProperty("value");
return value > 13614147614224 ? "red" : "blue";
}
obj.getColumnTemplate(1).setStyle("color", myColor);
i have a colum that has this type of data..
1.3.6.1.4.1.476.1.42.3.2.4.1
1.3.6.1.4.1.476.1.42.3.2.4.2
1.3.6.1.4.1.476.1.42.3.2.4.2.1
1.3.6.1.4.1.476.1.42.3.2.4.2.2
1.3.6.1.4.1.476.1.42.3.2.4.2.3
i would like:
1.3.6.1.4.1.476.1.42.
black
the range
3.2.4.
to be say gray
then say the .1 rang to be blue .2 to be green and so on...
i have tried below. but its not a real number...
any help on how to do this would be awsome!
function myColor(){
var value = this.getItemProperty("value");
return value > 13614147614224 ? "red" : "blue";
}
obj.getColumnTemplate(1).setStyle("color", myColor);
-paul
January 24,