EJSC.PieSeries

       

Hierarchy                Properties                Methods                Events

PieSeries is rendered by drawing slices to form an ellipse.  Each slice represents a percentage of the total of the sum of all point values in the dataset.

 

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

 

Constructor

 

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

 

Example

 

var mySeries = new EJSC.PieSeries(

       new EJSC.ArrayDataHandler([[10,"Label 1"],[20,"Label 2"],[120,"Label3"]]),

       { title: "New Pie Series" }

);

 

 

Defining Properties and Events

 

PieSeries 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.PieSeries(new EJSC.ArrayDataHandler([[10,"Label 1"],[20,"Label 2"],[120,"Label 3"]]));

       mySeries.title = "New Pie Series";

 

Setting properties in batch

 

       var mySeries = new EJSC.PieSeries(

               ArrayDataHandler([[10,"Label 1"],[20,"Label 2"],[120,"Label 3"]]),

               { title: "New Pie Series" }

       );