GetChartAxisLevelLine

Syntax

ChartAxisLevelLine GetChartAxisLevelLine(LevelLineId tLevelLineId)

Parameters

tLevelLineId. Moniker for working with chart axis level line.

Description

The GetChartAxisLevelLine operation gets chart axis level line settings.

Comments

To execute the operation, in the tLevelLineId field specify level line moniker. Moniker format: Regular report instance moniker!Sheets!sheet key!Objects!chart identifier!axis identifier!LevelLines!level line index. The following axis identifiers are available:

The operation results in the obtained level line settings.

Example

Below is the example of getting chart axis level line settings. The request contains moniker for working with a level line. 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">
<GetChartAxisLevelLine xmlns="http://www.fsight.ru/PP.SOM.Som">
<tLevelLineId xmlns="">
  <id>IOBMGLDPOIBOFOAEONLPLMHPBOFJKECEFJFPJDPALBEBLOAJ!M!S!PKAKNIPDPOIBOFOAEFGIEKKHIJGANGHCEBKHAMGBHBJHFEANF!Sheets!1!Objects!PrxChart1!AxisY!LevelLines!2</id>
  </tLevelLineId>
  </GetChartAxisLevelLine>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetChartAxisLevelLineResult 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">
  <i xmlns="">2</i>
  <v xmlns="">3</v>
  <callft xmlns="">0</callft>
<ls xmlns="">
  <clr>#FF0000</clr>
  <s>1</s>
  <w>0.5</w>
  </ls>
<lb xmlns="">
  <v>1</v>
<f>
  <family>Tahoma</family>
<style>
  <it>Regular</it>
  </style>
<size>
  <width>-1</width>
  <height>8</height>
  <units>Pt</units>
  </size>
  </f>
  <fc>#918F8D</fc>
  <mt>Reference point</mt>
  </lb>
  </GetChartAxisLevelLineResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetChartAxisLevelLine" :
{
"tLevelLineId" :
{
"id" : "IOBMGLDPOIBOFOAEONLPLMHPBOFJKECEFJFPJDPALBEBLOAJ!M!S!PKAKNIPDPOIBOFOAEFGIEKKHIJGANGHCEBKHAMGBHBJHFEANF!Sheets!1!Objects!PrxChart1!AxisY!LevelLines!2"
}
}
}

JSON response:

{
"GetChartAxisLevelLineResult" :
{
"i" : "2",
"v" : "3",
"callft" : "0",
"ls" :
{
"clr" : "#FF0000",
"s" : "1",
"w" : "0.5"
},
"lb" :
{
"v" : "1",
"f" :
{
"family" : "Tahoma",
"style" :
{
"it" : "Regular"
},
"size" :
{
"width" : "-1",
"height" : "8",
"units" : "Pt"
}
},
"fc" : "#918F8D",
"mt" : "Reference point"
}
}
}
public static ChartAxisLevelLine GetChartAxisLevelLine(string moniker, string sheetKey, string chartId, string axis, uint lineIndex)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartAxisLevelLine()
{
tLevelLineId = new LevelLineId() { id = moniker + "!Sheets!" + sheetKey + "!Objects!" + chartId + '!' + axis + "!LevelLines!" + lineIndex }
};
// Get chart axis level line settings
var result = somClient.GetChartAxisLevelLine(tGet);
return result;
}

See also:

Chart