Skip to content

Internals: User interface object

k00ni edited this page Jan 4, 2013 · 7 revisions

This object contains information about the whole user interface. Primary it is used for store data about the chart and its settings (from visualization selector). The user interface object will be stored on the server identified by its JSON serialization, because of that it should only contain simple data structures.

The following code illustrates the object structure:

// this.app._.ui
{
    visualization: {
        class: ""
    }

    visualizationSettings: {
        relatedToClass: "",
        // the rest of the properties depending on the visualization settings
    }
}

ui.visualization

This sub object stores data about the current selected visualization / chart.

ui.visualizationSettings

This sub object stores data about the settings of the current selected visualization / chart. After you select another visualization, CubeViz will try to use most of existing settings for the new visualization. Settings that could not be used, will be deleted or reset.