MindFusion.Charting for JavaScript Programmer's Guide
Series2D Constructor
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

Series2D Constructor Overload List
Series2D Class
MindFusion.Charting Namespace