GetChartTrendLine GetChartTrendLine(SerieId tSerie)
tSerie. Chart series moniker.
The GetChartTrendLine operation gets trend line settings for a data series.
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:
Chart moniker!Series!Default. It is used to work with default chart series settings.
Chart moniker!Series!Series index. It is used to work with settings of the chart series with the specified index. Indexing starts from zero.
The operation results in the obtained trend line settings for a chart series.
Below is the example of getting trend line settings for a chart series. The request contains series moniker. The response contains the obtained settings.
{
"GetChartTrendLine" :
{
"tSerie" :
{
"id" : "EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Series!1"
}
}
}
{
"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: