TrendWizard.CurrentState

Syntax

CurrentState: Object

Description

The CurrentState property determines current settings for the data validation wizard that compares time series trends.

Comments

Use the setCurrentState method to set the property value, and the getCurrentState method to get the property value. Property value cannot be set from JSON.

Example

To execute the example, the HTML page must contain an instance of the TrendWizard class named trendWizard (see TrendWizard Constructor), and the workbook data source must contain observations attribute with the ID COUNTRIES and the key 10. Determine new settings for data validation wizard that compares time series trends:

// Determine new settings for wizard
var state = {
    "comparator": {
        "its": {
            "it": [{
                    /* Determine series attribute */
                    "k": 9, // Attribute key
                    "id": "COUNTRY", // Attribute identifier
                    "n": "Country" // Attribute name
                }
            ]
        }
    }
}
// Apply these settings
trendWizard.setCurrentState(state);

After executing the example the Country attribute is set for comparison in this wizard:

See also:

TrendWizard