Search
SimpleSeries Constructor (List<Number>, List<String>)
See Also
 






Initializes a new instance of the SimpleSeries class.

Namespace: MindFusion.Charting
File: SimpleSeries.js

 Syntax

JavaScript  Copy Code

function SimpleSeries (values, labels)

 Parameters

values

Type: List
A list of data values.

labels

Type: List
A list of labels.

 Example

The following code creates a SimpleSeries and assigns it to the series property of a FunnelChart. The SimpleSeries uses two Lists:

JavaScript  Copy Code
// create sample data
var values = new Collections.List([70, 60, 50, 30, 20, 15, 10, 4]);
var labels = new Collections.List(["Unqualified prospects", "Leads", "Initial communication",
 "Customer evaluation", "Negotiation", "Purchase order received", "Delivery", "Payment"]);
funnelChart.series = new Charting.SimpleSeries(values, labels);

 See Also