MindFusion.Charting for JavaScript Programmer's Guide
SimpleSeries Constructor
See Also
 






Initializes a new instance of the SimpleSeries class.

Namespace: MindFusion.Charting
File: SimpleSeries.js

 Syntax

JavaScript  Copy Code

function SimpleSeries (values, labels, [tooltips])

 Parameters

values

Type: List | Array
A list of data values.

labels

Type: List | Array
A list of labels.

tooltips
Optional.

Type: List | Array
A list of tooltips.

 Example

The following code creates a new SimpleSeries with 12 values and labels. It also sets the data values as tooltips:

JavaScript  Copy Code
var data = new Collections.List([2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24]);
var labels = new Collections.List([
 "Jan", "Feb", "Mar", "Apr", "May", "Jun",
 "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
]);
var series = new Charting.SimpleSeries(data, labels, data);

 See Also

SimpleSeries Constructor Overload List
SimpleSeries Class
MindFusion.Charting Namespace