ChartBox.getService

Syntax

getService();

Description

The getService method returns service object to work with express report.

Comments

The method returns a PP.Exp.EaxMdService object.

Example

Executing the example requires that the HTML page contains the ChartBox component named chartBox (see Example of Creating the ChartBox Component). Wait until the component is fully loaded, next get a service to work with the express report, and process the ChartDataLoaded event:

// Get service to work with express report
var service = chartBox.getService();
// Handle the ChartDataLoaded event
service.ChartDataLoaded.add(function () {    
    if (chartBox.isLoaded()) {
        console.log("Container for the express report chart is loaded.");    
    }
});
//Call the ChartDataLoaded event
service.ChartDataLoaded.fire(this);

After executing the example on calling the chart container loading event, the browser console displays an appropriate notification.

See also:

ChartBox