TSService.moveSeries

Syntax

moveSeries(wbk, series, isUp, callback, args);

Parameters

wbk. PP.TS.Workbook. Sets workbook value

series. Array of Objects. Array of series.

isUp. Boolean. Indicates whether a series is moved up. If the value is False, a series is moved down.

callback. Sets handler for operation execution end.

args. Object. Arguments with metadata.

Description

The moveSeries method moves series up or down.

Example

To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component).

// Get second data series
serie = wbk.getSeries()[1];
series = [serie];
// Move series up
tsService.moveSeries(wbk, series, true);
// Refresh workbook
workbookBox.refreshAll();

After executing the example the second data series is moved up.

See also:

TSService