Result MoveChartSerie(SeriesId tSeries, PosFromTo pos)
tSeries. Moniker of chart series collection.
pos. Series moving parameters.
The MoveChartSerie operation moves chart series.
To execute the operation, in the tSeries field specify series moniker, and in the tArg field specify series moving parameters. The moniker can be created based on the chart moniker specified in the GetChart, SetChart, GetChartSeries operations. Moniker format: Chart moniker!Series.
The operation results in the logical True if moving was successful.
Below is the example of moving two series on the chart added to regular report sheet. The request contains moniker for working with chart series and series moving parameters. The response contains whether moving was successful.
{
"MoveChartSerie" :
{
"tSeries" :
{
"id" : "S2!M!S!P1!Sheets!1!Objects!PrxChart1!Series"
},
"pos" :
{
"from" : "0",
"to" : "1"
}
}
}
{
"MoveChartSerieResult" : "1"
}
public static bool MoveSeries(string chartMoniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new MoveChartSerie()
{
tSeries = new SeriesId() { id = chartMoniker + "!Series"},
pos = new PosFromTo() { from = 0, to = 1 }
};
// Move chart series
var result = somClient.MoveChartSerie(tGet);
return result;
}
See also: