setBarFgColor()

ICE Data Services -

setBarFgColor()
Previous  Top  Next


setBarFgColor( color [, index )

This function sets the foreground color for a series value that is being returned to the chart for plotting.

Parameters

color
the color to use
index
optional. an integer identifying the return index from main()


Usage

function main() {
var myVar;

   ...
   ...

   
if ( myVar > 0 ) {
      setBarFgColor( Color.green, 
0 );
   }
   
else {
      setBarFgColor( Color.red, 
0 );
   }

   
return( myVar );

}


setDefaultBarFgColor()