Hierarchy                Properties                Methods                Events

Top  Previous  Next



AreaSeries is rendered by drawing a line from point to point and then filling the area defined.


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




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




var mySeries = new EJSC.AreaSeries(

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

               { title: "New Area Series" }




Defining Properties and Events


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

               mySeries.lineWidth = 1;

               mySeries.title = "New Area Series";


Setting properties in batch


               var mySeries = new EJSC.AreaSeries(

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

                               { lineWidth: 1, title: "New Area Series" }