bool SetChartAxisY(AxisId tAxis, ChartAxisY tArg)
tAxis. Chart axis moniker.
tArg. Settings that should be applied for Y axis.
The SetChartAxisY operation changes chart's Y axis settings.
To execute the operation, in the tAxis field specify Y axis moniker, 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!AxisY.
The operation results in the logical true if the settings were applied successfully.
Below is the example of changing chart's Y axis settings. The request contains axis moniker and settings to be applied. The response contains whether the settings are applied successfully.
{
"SetChartAxisY" :
{
"tAxis" :
{
"id" : "S1!M!S!P1!Sheets!1!Objects!PrxChart3!AxisY"
},
"tArg" :
{
"ct" : "Progress percentage",
"max" : "100",
"amax" : "false",
"min" : "0",
"amin" : "false"
}
}
}
{
"SetChartAxisYResult" : "1"
}
public static bool ChangeAxisYSettings(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetChartAxisY()
{
tAxis = new AxisId()
{
id = moniker + "!AxisY"
},
tArg = new ChartAxisY()
{
amax = false,
max = 100,
amin = false,
min = 0,
ct = "Progress percentage"
}
};
// Change Y axis settings
var result = somClient.SetChartAxisY(tSet);
return result;
}
See also: