ChartDataLoaded: function (sender, args);
sender. Event source.
args. Event information. Available arguments: Args - express report document, ResponseText - text sent by the server in response to this event.
The ChartDataLoaded event occurs after loading an express report chart.
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. Handle the ChartDataLoaded event and show information about this chart:
// Get a service used to work with express report var eaxMdService = expressBox.getService(); // Handle the ChartDataLoaded event eaxMdService.ChartDataLoaded.add(function () { // Get express report document var eaxAnalyzer = expressBox.getSource(); var metadata = eaxMdService.getChart(eaxAnalyzer); if (metadata) { console.log("Object with information about express report chart:"); console.log(metadata); } else { console.log("No information about express report chart."); } });
After executing the example on handling the event that occurs after loading express report chart, the browser console displays an object that contains chart metadata, or a message informing that no information on the chart is available.
See also: