Initializes a new instance of the SimpleSeries class.
Namespace: MindFusion.Charting
File: SimpleSeries.js
SyntaxJavaScript
Copy Code
|
|---|
function SimpleSeries (values, labels) |
Type: List
A list of data values.
Type: List
A list of labels.
ExampleThe 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