setBarStyle()

eSignal EFS 2

setBarStyle()

Top  Previous  Next

 

setBarStyle( style [, series] )

 

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

 

Parameters

 

style

see Pen Styles below

series

optional. an integer identifying the series offset

 

Pen Styles

 

PS_SOLID

draw a solid line

PS_DOT

draw a dotted line

PS_DASH

draw a dashed line

PS_DASHDOT

draw a dash-dot line

PS_DASHDOTDOT

draw a dash-dot-dot line

 

Usage

 

function main() {

var myVar;

 

       ...

       ...

 

       if ( myVar > 0 ) {

               setBarStyle( PS_SOLID, 0 );

       }

       else {

               setBarStyle( PS_DOT, 0 );

       }

 

       return( myVar );

 

}

 

setDefaultBarStyle()