MoveChartSerie

Syntax

Result MoveChartSerie(SeriesId tSeries, PosFromTo pos)

Parameters

tSeries. Moniker of chart series collection.

pos. Series moving parameters.

Description

The MoveChartSerie operation moves chart series.

Comments

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.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<MoveChartSerie xmlns="http://www.fsight.ru/PP.SOM.Som">
<tSeries xmlns="">
  <id>S2!M!S!P1!Sheets!1!Objects!PrxChart1!Series</id>
  </tSeries>
<pos xmlns="">
  <from>0</from>
  <to>1</to>
  </pos>
  </MoveChartSerie>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <MoveChartSerieResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</MoveChartSerieResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"MoveChartSerie" :
{
"tSeries" :
{
"id" : "S2!M!S!P1!Sheets!1!Objects!PrxChart1!Series"
},
"pos" :
{
"from" : "0",
"to" : "1"
}
}
}

JSON response:

{
"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:

Chart