EaxChartView.Instance

Syntax

Instance: Object

Description

The Instance property contains an instance of express report chart.

Comments

Use JSON or the setInstance method to set the property value, and the getInstance method to get the property value.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and have a loaded chart in working area of the express report. Get width and height of a given chart:

// Get express report chart view
var chartView = expressBox.getDataView().getChartView();
if (chartView.isLoaded()) {
    // Get express report chart instance
    var instance = chartView.getInstance();
    // Get chart width ad height
    console.log("Chart width: " + instance.chartWidth);
    console.log("Chart height: " + instance.chartHeight);
}

After executing the example the browser console displays size of express report chart:

Chart width: 897
Chart height: 448

Example 2

The example of use is also given in the page with description of the EaxChartView.Options property.

See also:

EaxChartView