setBarStyle()

ICE Data Services -

setBarStyle()
Previous  Top  Next

setBarStyle( style [, index] )

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
index
optional. an integer identifying the return index from main()


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