ChartStyleAbsoluteGroup GetSeriesGroupTree(ChartAbsoluteGroupId mon)
mon. Moniker for working with histogram series groups.
The GetSeriesGroupTree operation gets a tree of histogram series grouping.
The operation is used on working with histograms that display data as groups. To execute the operation, in the mon field specify regular report instance moniker with the !Sheets!sheet key!Objects!chart identifier!Group postfix to work with series groups. Moniker of regular report instance can be obtained on executing the OpenPrxMeta operation.
The operation results in the tree of series groups.
Below is the example of getting a tree of histogram series grouping located on a regular report sheet. The request contains moniker for working with series groups. The response contains the obtained tree of series groups.
{
"GetSeriesGroupTree" :
{
"mon" :
{
"id" : "DJKIICCJHNCAGOAEAEMMLBNLKMJNJKJEKJKGJNLJPENPPEMD!M!S!PCJENOHCJHNCAGOAEOFHBIKJIBIKIODFEDIEGIMLOAMBJKDAG!Sheets!1!Objects!PrxChart4!Group"
}
}
}
{
"GetSeriesGroupTreeResult" :
{
"rg" :
{
"it" :
[
{
"s" :
{
"it" :
{
"idx" : "0",
"di" : "0",
"n" : "First element"
}
}
},
{
"s" :
{
"it" :
[
{
"idx" : "1",
"di" : "1",
"n" : "Second element"
},
{
"idx" : "2",
"di" : "2",
"n" : "Third element"
},
{
"idx" : "3",
"di" : "3",
"n" : "Fourth element"
}
]
}
}
]
}
}
}
public static ChartStyleAbsoluteGroup GetSeriesGroupTree(string moniker, string sheetKey, string chartId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetSeriesGroupTree()
{
mon = new ChartAbsoluteGroupId() { id = moniker + "!Sheets!" + sheetKey + "!Objects!" + chartId + "!Group" }
};
// Get tree of series groups
var result = somClient.GetSeriesGroupTree(tGet);
return result;
}
See also: