|
LineSeries is rendered by drawing a line from point to point.
The constructor expects an instantiated EJSC.DataHandler descendant and an optional set of object properties.
Constructor
EJSC.LineSeries( EJSC.DataHandler dataHandler [, object options] )
Example
var mySeries = new EJSC.LineSeries( new EJSC.ArrayDataHandler([[1,1],[2,2],[3,3],[4,3],[5,2],[6,4]]), { title: "New Line Series" } );
Defining Properties and Events
LineSeries 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.LineSeries(new EJSC.ArrayDataHandler([[1,1],[2,2],[3,3],[4,3],[5,2],[6,4]])); mySeries.lineWidth = 2; mySeries.title = "New Line Series";
Setting properties in batch
var mySeries = new EJSC.LineSeries( new EJSC.ArrayDataHandler([[1,1],[2,2],[3,3],[4,3],[5,2],[6,4]]), { lineWidth: 2, title: "New Line Series" } );
|