ChartAxisY GetChartAxisY(AxisId tAxis)
tAxis. Chart axis moniker.
The GetChartAxisY operation gets chart's Y axis settings.
To execute the operation, in the tAxis field specify chart axis moniker. 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 obtained axis settings.
Below is the example of getting chart's Y axis settings. The request contains axis moniker. The response contains the obtained settings.
{
"GetChartAxisY" :
{
"tAxis" :
{
"id" : "S1!M!S!P1!Sheets!1!Objects!PrxChart3!AxisY"
}
}
}
{
"GetChartAxisYResult" :
{
"p" : "Auto",
"cv" : "1",
"cf" :
{
"family" : "Tahoma",
"style" :
{
"it" : "Regular"
},
"size" :
{
"width" : "-1",
"height" : "10",
"units" : "Pt"
}
},
"cfc" : "#918F8D",
"lv" : "1",
"lf" :
{
"family" : "Tahoma",
"style" :
{
"it" : "Bold"
},
"size" :
{
"width" : "-1",
"height" : "9",
"units" : "Pt"
}
},
"lfc" : "#918F8D",
"la" : "0",
"gl" :
{
"enabled" : "1",
"clr" : "#E0E0E0",
"s" : "0",
"w" : "1"
},
"tl" :
{
"enabled" : "0"
},
"al" :
{
"enabled" : "0"
},
"max" : "100",
"amax" : "0",
"min" : "0",
"amin" : "0",
"nf" : "",
"du" : "0",
"stm" : "1",
"tc" : "5"
}
}
public static ChartAxis GetAxisY(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartAxisY()
{
tAxis = new AxisId()
{
id = moniker + "!AxisY"
}
};
// Get Y axis settings
var result = somClient.GetChartAxisY(tGet);
return result;
}
See also: