bool SetChartAxisLevelLine(LevelLineId tLevelLineId, ChartAxisLevelLine tArg)
tLevelLineId. Moniker for working with chart axis level line.
tArg. Settings that should be determined for a level line.
The SetChartAxisLevelLine operation changes chart axis level line settings.
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:
AxisX - for X axis.
AxisY - for Y axis.
The operation results in the logical True if the settings were changed successfully.
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.
{
"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"
}
}
}
}
{
"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: