GetChartLabel

Syntax

ChartLabel GetChartLabel(ChartLabelId tLabel)

Parameters

tLabel. Moniker for working with data labels.

Description

The GetChartLabel operation gets settings of chart data labels.

Comments

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:

The operation results in the obtained data label settings.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetChartLabel xmlns="http://www.fsight.ru/PP.SOM.Som">
<tLabel xmlns="">
  <id>S1!M!S!P1!Sheets!1!Objects!PrxChart3!Label</id>
  </tLabel>
  </GetChartLabel>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetChartLabelResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <v xmlns="">1</v>
  <p xmlns="">Left</p>
  <t xmlns="">X: %XValue</t>
<f xmlns="">
  <family>Tahoma</family>
<style>
  <it>Regular</it>
  </style>
<size>
  <width>-1</width>
  <height>8</height>
  <units>Pt</units>
  </size>
  </f>
  <fc xmlns="">#918F8D</fc>
  </GetChartLabelResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetChartLabel" :
{
"tLabel" :
{
"id" : "S1!M!S!P1!Sheets!1!Objects!PrxChart3!Label"
}
}
}

JSON response:

{
"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:

Chart