EJSC.ErrorSeries

               

Hierarchy                Properties                Methods                Events

Top  Previous  Next

EJSC.ErrorSeries

 

The ErrorSeries is rendered as a set of markers which may include an average (or expected) value, a high error, and a low error.

 

The average is denoted by a diamond while the errors are denoted by a "T".  Connecting line(s) will be drawn between the average (if defined) and the error markers.

 

The constructor expects a value and an optional set of object properties.

 

Constructor

 

       EJSC.ErrorSeries( EJSC.DataHandler dataHandler, {object options} )

 

Example

 

var ErrorSeries = new EJSC.ErrorSeries( new EJSC.ArrayDataHandler( [[0,0],[1,2],[2,1]] ) , {

               title: 'Error Series'

} );

 

 

Defining Properties and Events

 

ErrorSeries properties may be set individually after the series has been created or in batch using the options parameter during instantiation.

 

Setting properties individually

 

               var mySeries = new EJSC.ErrorSeries(new EJSC.ArrayDataHandler( [[0,0],[1,2],[2,1]] ) );

               mySeries.title = "Error Series";

               mySeries.capSize = 5;

               mySeries.capDist = 6;

               mySeries.avgSize = 1;

               mySeries.orientation = 'horizontal';

 

 

Setting properties in batch

 

               var mySeries = new EJSC.ErrorSeries(new EJSC.ArrayDataHandler( [[0,0],[1,2],[2,1]] ), {

                               title: "Error Series",

                               capSize: 5,

                               capDist: 6,

                               avgSize: 1,

                               orientation: 'horizontal'

               } );