setChartMetadata (report, metadata, callback);
report. Sets workbook, an instance of the Workbook class.
metadata. Metadata.
callback. Sets handler for operation execution end.
The setChartMetadata method sets chart metadata.
To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), a service used to work with time series named tsService. After loading of workbook component enter the following code to the command line:
// Get workbook instance wrkBook = workbookBox.getSource().getActiveSheet(); // Get workbook metadata metaCopy = wrkBook.getMetadata(); // Set chart metadata tsService.setChartMetadata(wrkBook, metaCopy.chart);
After executing the example chart metadata is set.
See also: