setBarBgColor()

ICE Data Services -

setBarBgColor()
Previous  Top  Next


setBarBgColor( color [, index] [, yMin] [, yMax] )

This function sets the background 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()
yMin
optional. paint background down to this yvalue
yMax
optional. paint background up to this yvalue


Usage

function main() {
var myVar;

   ...
   ...

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

   
return( myVar );

}


setDefaultBarBgColor()