ChartSeriesGroupFastFormatResult SeriesGroupFastFormat(ChartAbsoluteGroupId mon, ChartSeriesGroupFastArg arg)
mon. Moniker for working with histogram series groups.
arg. Operation execution parameters.
The SeriesGroupFastFormat operation changes 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, and in the arg.fmt field specify the set format of series in groups.
Available values of the arg.fmt field:
0. Place the first series separately.
1. Place series together.
2. Place series separately.
Moniker of regular report instance can be obtained on executing the OpenPrxMeta operation.
The operation results in the successful application of changes and refreshed series tree in groups.
Below is the example of changing histogram series grouping located on a regular report sheet. The request contains moniker for working with series groups. The response contains the refreshed tree of series groups.
{
"SeriesGroupFastFormat" :
{
"mon" :
{
"id" : "DJKIICCJHNCAGOAEAEMMLBNLKMJNJKJEKJKGJNLJPENPPEMD!M!S!PCJENOHCJHNCAGOAEOFHBIKJIBIKIODFEDIEGIMLOAMBJKDAG!Sheets!1!Objects!PrxChart4!Group"
},
"arg" :
{
"fmt" : "2"
}
}
}
{
"SeriesGroupFastFormatResult" :
{
"result" : "1",
"groups" :
{
"rg" :
{
"it" :
[
{
"s" :
{
"it" :
{
"idx" : "0"
}
}
},
{
"s" :
{
"it" :
{
"idx" : "1"
}
}
},
{
"s" :
{
"it" :
{
"idx" : "2"
}
}
},
{
"s" :
{
"it" :
{
"idx" : "3"
}
}
}
]
}
}
}
}
public static ChartSeriesGroupFastFormatResult SeriesGroupFastFormat(string moniker, string sheetKey, string chartId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SeriesGroupFastFormat()
{
mon = new ChartAbsoluteGroupId() { id = moniker + "!Sheets!" + sheetKey + "!Objects!" + chartId + "!Group" },
arg = new ChartSeriesGroupFastArg() { fmt = 2 }
};
// Change series layout in groups
var result = somClient.SeriesGroupFastFormat(tSet);
return result;
}
See also: