EJSC.FunctionSeries

               

Hierarchy                Properties                Methods                Events

Top  Previous  Next

EJSC.FunctionSeries

 

The FunctionSeries is rendered as a line based on the results of the function specified.

 

The constructor expects a function which can be called as function(x), and an optional set of object properties.

 

Constructor

 

               EJSC.FunctionSeries( function fn, {object options} )

 

Example

 

var mySeries = new EJSC.FunctionSeries(

               Math.cos,

               { title: "New Function Series" }

);

 

 

Defining Properties and Events

 

FunctionSeries 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.FunctionSeries(Math.cos);

               mySeries.lineWidth = 2;

               mySeries.title = "New Function Series";

 

Setting properties in batch

 

               var mySeries = new EJSC.FunctionSeries(

                               Math.cos,

                               { lineWidth: 2, title: "New Function Series" }

               );