var Analysis = require('fx-analysis/start');
var analysis = new Analysis({
el : "#analysis-container",
...
});
Check fx-analysis/config/config.js
to have a look of the default configuration.
Parameter | Type | Default Value | Example | Description |
---|---|---|---|---|
el | CSS3 Selector/JavaScript DOM element/jQuery DOM element | - | "#container" | component container |
cache | boolean | false | true | whether or not to use FENIX bridge cache |
environment | string | 'develop' | 'production' | Server environment |
lang | string | 'EN' | 'IT' | Multilingual |
catalog | Object || false | - | - | Proxied FENIX Catalog configuration. Check FENIX Catalog. `false` to do not render catalog |
box | Object | - | - | Proxied FENIX Visualization Box configuration. Check FENIX Visualization Box. |
//This is an example
analysis.on("catalog.show", function () {...});
analysis.on(event, callback[, context])
: pub/subanalysis.dispose()
: dispose the analysis instance
catalog.show
: triggered when a catalog is shownready
: triggered when a instance is readyadd
: triggered when a new visualization box is addedremove
: triggered when a visualization box is removedchange
: triggered when 'add' or 'remove' events are triggered