|
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" } );
Gaps in line series
Gaps are supported in the line series and may be enabled by providing a blank string for a given X and/or Y value:
var mySeries = new EJSC.LineSeries( new EJSC.ArrayDataHandler([[1,1],[2,2],[3,""],[4,3],[5,2],[6,""],[7,2.5],[8,1.75]]), { lineWidth: 2, title: "New Line Series" } ); |