Result GetChartCorridors(ChartCorridorsId tCorridors)
tCorridors. Moniker for working with chart corridors.
The GetChartCorridors operation gets chart corridor settings.
To execute the operation, in the tCorridors field specify chart corridor moniker, and in the tArg field specify the settings to be applied. The moniker can be created based on the chart moniker specified in the GetChart, SetChart, GetChartSeries operations. The moniker is created in the following format: 'Chart moniker'!Corridors.
The operation results in the obtained chart corridor settings.
Below is the example of getting chart corridor settings. The request contains moniker for working with corridors. The response contains the obtained settings.
{
"GetChartCorridors" :
{
"tCorridors" :
{
"id" : "EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Corridors"
}
}
}
{
"GetChartCorridorsResult" :
{
"corridors" :
{
"it" :
[
{
"s1" : "0",
"s2" : "1",
"gf" : "1",
"clr" : "#705E70",
"tp" : "62",
"name" : "USA - Canada",
"dl" : "1"
},
{
"s1" : "2",
"s2" : "3",
"gf" : "1",
"clr" : "#EF9859",
"tp" : "50",
"name" : "Germany - France",
"dl" : "0"
}
]
}
}
}
public static ChartCorridors GetChartCorridors(string chartMoniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartCorridors()
{
tCorridors = new ChartCorridorsId
{
id = chartMoniker + "!Corridors"
}
};
// Get chart corridors
var result = somClient.GetChartCorridors(tGet);
return result;
}
See also: