The following example initializes a new instance of a Legend object:
var newObject = new dundas.view.controls.Legend();