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






Initializes a new instance of the ObservableCollection class.

Namespace: MindFusion.Common.Collections
File: ObservableCollection.js

 Syntax

JavaScript  Copy Code

function ObservableCollection ([items])

 Parameters

items
Optional.

Type: Array
Array. The underlying array data structure of the collection.

 Example

The following example creates chart series stored in an ObservableCollection instance:

JavaScript  Copy Code
var series = new Collections.ObservableCollection();
series.add(new Charting.BarSeries(
      new Collections.List([20, 60, 40, 55]),
      new Collections.List(["Acer", "Biostar", "Foxconn", "Supermicro"]),
      new Collections.List(["", "", "", ""])));

 See Also

ObservableCollection Class
MindFusion.Common.Collections Namespace