EJSC.DoughtnutSeries

               

Hierarchy                Properties                Methods                Events

Top  Previous  Next

EJSC.DoughnutSeries

 

The DoughnutSeries is rendered similar to the PieSeries, but with part of the center missing. You can use "Donut" instead of Doughnut for shorthand.

 

DoughnutSeries 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.DoughnutSeries( EJSC.DataHandler dataHandler [, object options] )

 

Example

 

var mySeries = new EJSC.DoughnutSeries(

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

               { title: "New Doughnut Series" }

);

 

 

Defining Properties and Events

 

DoughnutSeries 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 Doughnut Series";

 

Setting properties in batch

 

               var mySeries = new EJSC.PieSeries(

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

                               { title: "New Doughnut Series" }

               );