SetChartAxisLevelLine

Syntax

bool SetChartAxisLevelLine(LevelLineId tLevelLineId, ChartAxisLevelLine tArg)

Parameters

tLevelLineId. Moniker for working with chart axis level line.

tArg. Settings that should be determined for a level line.

Description

The SetChartAxisLevelLine operation changes chart axis level line settings.

Comments

To execute the operation, in the tLevelLineId field specify level line moniker, and in the tArg field specify settings to be determined. 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 logical True if the settings were changed successfully.

Example

Below is the example of changing chart axis level line settings. The request contains level line moniker and settings to be determined. The response contains whether settings were changed successfully.

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">
<SetChartAxisLevelLine xmlns="http://www.fsight.ru/PP.SOM.Som">
<tLevelLineId xmlns="">
  <id>IOBMGLDPOIBOFOAEONLPLMHPBOFJKECEFJFPJDPALBEBLOAJ!M!S!PKAKNIPDPOIBOFOAEFGIEKKHIJGANGHCEBKHAMGBHBJHFEANF!Sheets!1!Objects!PrxChart1!AxisY!LevelLines!2</id>
  </tLevelLineId>
<tArg xmlns="">
  <v>3</v>
  <callft>0</callft>
<ls>
  <s>1</s>
  <w>0.5</w>
  </ls>
<lb>
  <v>true</v>
  <mt>Reference point</mt>
  </lb>
  </tArg>
  </SetChartAxisLevelLine>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <SetChartAxisLevelLineResult 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">1</SetChartAxisLevelLineResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"SetChartAxisLevelLine" :
{
"tLevelLineId" :
{
"id" : "IOBMGLDPOIBOFOAEONLPLMHPBOFJKECEFJFPJDPALBEBLOAJ!M!S!PKAKNIPDPOIBOFOAEFGIEKKHIJGANGHCEBKHAMGBHBJHFEANF!Sheets!1!Objects!PrxChart1!AxisY!LevelLines!2"
},
"tArg" :
{
"v" : "3",
"callft" : "0",
"ls" :
{
"s" : "1",
"w" : "0.5"
},
"lb" :
{
"v" : "true",
"mt" : "Reference point"
}
}
}
}

JSON response:

{
"SetChartAxisLevelLineResult" : "1"
}
public static bool SetChartAxisLevelLine(string moniker, string sheetKey, string chartId, string axis, uint lineIndex)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetChartAxisLevelLine()
{
tArg = new ChartAxisLevelLine()
{
v = 3,
callft = 0,
ls = new ChartLineBase()
{
w = 0.5,
s = 1
},
lb = new ChartAxisLevelLineLabel()
{
v = true,
mt = "Reference point"
}
},
tLevelLineId = new LevelLineId() { id = moniker + "!Sheets!" + sheetKey + "!Objects!" + chartId + '!' + axis + "!LevelLines!" + lineIndex }
};
// Change chart axis level line settings
var result = somClient.SetChartAxisLevelLine(tSet);
return result;
}

See also:

Chart