setBarBgColor()

eSignal EFS 2

setBarBgColor()

Top  Previous  Next

 

setBarBgColor( color [, series] [, 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

series

optional. an integer identifying the series offset

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()