SetChartAxisYSec

Syntax

bool SetChartAxisYSec(AxisId tAxis, ChartAxisYSec tArg)

Parameters

tAxis. Moniker of chart's secondary Y axis.

tArg. Settings that should be applied for secondary Y axis.

Description

The SetChartAxisYSec operation changes settings of chart's secondary Y axis.

Comments

To execute the operation, in the tAxis field specify moniker of secondary Y axis, and in the tArg field specify settings to be applied. The moniker can be created based on the chart moniker specified in the GetChart, SetChart, GetChartSeries operations. The moniker is created in the following format: 'Chart moniker'!AxisYSec'.

The operation results in the logical true if the settings were applied successfully.

Example

Below is the example of changing settings of chart's secondary Y axis. The request contains secondary axis moniker and settings to be applied. The response contains whether the settings are applied 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">
<SetChartAxisYSec xmlns="http://www.fsight.ru/PP.SOM.Som">
<tAxis xmlns="">
  <id>S1!M!S!P1!Sheets!1!Objects!PrxChart3!AxisYSec</id>
  </tAxis>
<tArg xmlns="">
  <ct>Additional values</ct>
  <max>10</max>
  <amax>false</amax>
  <min>0</min>
  <amin>false</amin>
  </tArg>
  </SetChartAxisYSec>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"SetChartAxisYSec" :
{
"tAxis" :
{
"id" : "S1!M!S!P1!Sheets!1!Objects!PrxChart3!AxisYSec"
},
"tArg" :
{
"ct" : "Additional values",
"max" : "10",
"amax" : "false",
"min" : "0",
"amin" : "false"
}
}
}

JSON response:

{
"SetChartAxisYSecResult" : "1"
}
public static bool ChangeAxisYSecSettings(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetChartAxisYSec()
{
tAxis = new AxisId()
{
id = moniker + "!AxisYSec"
},
tArg = new ChartAxisYSec()
{
amax = false,
max = 10,
amin = false,
min = 0,
ct = "Additional values"
}
};
// Change settings of secondary Y axis
var result = somClient.SetChartAxisYSec(tSet);
return result;
}

See also:

Chart