TSService.setChartMetadata

Syntax

setChartMetadata (report, metadata, callback);

Parameters

report. Sets workbook, an instance of the Workbook class.

metadata. Metadata.

callback. Sets handler for operation execution end.

Description

The setChartMetadata method sets chart metadata.

Example

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:

TSService