EJSC.ScatterSeries

               

Hierarchy                Properties                Methods                Events

Top  Previous  Next

EJSC.ScatterSeries

 

ScatterSeries is rendered by drawing a styled point for each x,y coordinate in the dataset.

 

The constructor expects an instantiated EJSC.DataHandler descendant and an optional set of object properties.

 

Constructor

 

               EJSC.ScatterSeries( EJSC.DataHandler dataHandler [, object options] )

 

Example

 

var mySeries = new EJSC.ScatterSeries(

               new EJSC.ArrayDataHandler([[1,1],[2,2],[3,3],[4,3],[5,2],[6,4]]),

               { title: "New Scatter Series" }

);

 

 

Defining Properties and Events

 

ScatterSeries 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.ScatterSeries(new EJSC.ArrayDataHandler([[1,1],[2,2],[3,3],[4,3],[5,2],[6,4]]));

               mySeries.pointSize = 3;

               mySeries.pointStyle = "diamond";

               mySeries.title = "New Scatter Series";

 

Setting properties in batch

 

               var mySeries = new EJSC.ScatterSeries(

                               new EJSC.ArrayDataHandler([[1,1],[2,2],[3,3],[4,3],[5,2],[6,4]]),

                               { pointSize: 3, pointStyle: "diamond", title: "New Scatter Series" }

               );