GetChartTrendLine

Syntax

GetChartTrendLine GetChartTrendLine(SerieId tSerie)

Parameters

tSerie. Chart series moniker.

Description

The GetChartTrendLine operation gets trend line settings for a data series.

Comments

To execute the operation, in the tSerie field specify series moniker. The moniker can be created based on the chart moniker specified in the GetChart, SetChart, GetChartSeries operations. The moniker is created in one of the following formats:

The operation results in the obtained trend line settings for a chart series.

Example

Below is the example of getting trend line settings for a chart series. The request contains series moniker. The response contains the obtained settings.

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">
<GetChartTrendLine xmlns="http://www.fsight.ru/PP.SOM.Som">
<tSerie xmlns="">
  <id>EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Series!1</id>
  </tSerie>
  </GetChartTrendLine>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetChartTrendLineResult 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">
  <e xmlns="">1</e>
  <tt xmlns="">2</tt>
<ls xmlns="">
  <clr>#000000</clr>
  <s>0</s>
  <w>1.5</w>
  </ls>
  <dil xmlns="">0</dil>
  <uat xmlns="">1</uat>
  <fwd xmlns="">0</fwd>
  <bwd xmlns="">0</bwd>
  </GetChartTrendLineResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetChartTrendLine" :
{
"tSerie" :
{
"id" : "EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Series!1"
}
}
}

JSON response:

{
"GetChartTrendLineResult" :
{
"e" : "1",
"tt" : "2",
"ls" :
{
"clr" : "#000000",
"s" : "0",
"w" : "1.5"
},
"dil" : "0",
"uat" : "1",
"fwd" : "0",
"bwd" : "0"
}
}
public static ChartTrendLine GetChartTrendLine(string chartMoniker, ulong serieNumber)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartTrendLine()
{
tSerie = new SerieId() { id = chartMoniker + "!Series!" + serieNumber }
};
// Get trend line settings
var result = somClient.GetChartTrendLine(tGet);
return result;
}

See also:

Chart