Search
Series2D Constructor (List<Number>, List<Number>, List<Number>)
See Also
 






Initializes a new instance of the Series2D class.

Namespace: MindFusion.Charting
File: Series2D.js

 Syntax

JavaScript  Copy Code

function Series2D (xValues, yValues, labels)

 Parameters

xValues

Type: List
A list of X coordinates.

yValues

Type: List
A list of Y coordinates.

labels

Type: List
A list of labels.

 Example

The following code creates a new Series2D instance using three List-s with values:

JavaScript  Copy Code

// create a sample series
var labels = new Collections.List(["Tomatoes", "Cucumbers", "Peppers", "Lettuce"]);


var series = new Charting.Series2D(new Collections.List([10, 20, 30, 40]), new Collections.List([50, 40, 50, 5]), labels);
series.title = "Traditional";

 See Also