Hierarchy                Properties                Methods                Events

Top  Previous  Next



The StepSeries is rendered similar to the LineSeries, but the line "steps" (ie it only changes Y values at the next point's X value).


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




               EJSC.StepSeries( EJSC.DataHandler dataHandler, {object options} )




var mySeries = new EJSC.StepSeries(

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

               { title: "New Step Series" }




Defining Properties and Events


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

               StepSeries.lineWidth = 2;

               StepSeries.title = "New Step Series";


Setting properties in batch


               var mySeries = new EJSC.StepSeries(

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

                               { StepSeries: 2, title: "New Step Series" }