bool SetChartAxisYSec(AxisId tAxis, ChartAxisYSec tArg)
tAxis. Moniker of chart's secondary Y axis.
tArg. Settings that should be applied for secondary Y axis.
The SetChartAxisYSec operation changes settings of chart's secondary Y axis.
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.
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.
{
"SetChartAxisYSec" :
{
"tAxis" :
{
"id" : "S1!M!S!P1!Sheets!1!Objects!PrxChart3!AxisYSec"
},
"tArg" :
{
"ct" : "Additional values",
"max" : "10",
"amax" : "false",
"min" : "0",
"amin" : "false"
}
}
}
{
"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: