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