Creating A Visualization

Initializing the visualization container is simple:

var av = new JSAV("container");

The container here refers to the id attribute of the container element (see the HTML template above). Alternatively, a DOM or jQuery element can be used as well. So, the following are alternative ways to achieve the same result:

var av = new JSAV(document.getElementById("container"));
var av = new JSAV(jQuery("#container"));

Both alternatives accept an optional second parameter options which should be a JavaScript object. The options that are currently supported:

In addition to the options passed to the function, any options specified in a global variable JSAV_OPTIONS will be used. Those passed on initialization always override the global options.