ChartLabel GetChartLabel(ChartLabelId tLabel)
tLabel. Moniker for working with data labels.
The GetChartLabel operation gets settings of chart data labels.
To execute the operation, in the tLabel field specify moniker for working with data labels. 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!Label. Data labels for a default series.
Chart moniker!Series!Series index!Label. Data labels for a series with specified index.
Chart moniker!Series!Series index!Points!Label. Data labels for series points.
Chart moniker!Series!Series index!Points!Point index!Label. Data labels for series point with specified index.
The operation results in the obtained data label settings.
Below is the example of getting chart data label settings. The request contains a moniker for working with data labels. The response contains the obtained settings.
{
"GetChartLabel" :
{
"tLabel" :
{
"id" : "S1!M!S!P1!Sheets!1!Objects!PrxChart3!Label"
}
}
}
{
"GetChartLabelResult" :
{
"v" : "1",
"p" : "Left",
"t" : "X: %XValue",
"f" :
{
"family" : "Tahoma",
"style" :
{
"it" : "Regular"
},
"size" :
{
"width" : "-1",
"height" : "8",
"units" : "Pt"
}
},
"fc" : "#918F8D"
}
}
public static ChartLabel GetChartLabel(string chartMoniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartLabel()
{
tLabel = new ChartLabelId()
{
id = chartMoniker + "!Label"
}
};
// Get data label settings
var result = somClient.GetChartLabel(tGet);
return result;
}
See also: