ChartAxisY ResetChartAxisY(AxisId tAxis)
tAxis. Chart axis moniker.
The ResetChartAxisY operation resets existing settings for chart's Y axis and applies default settings.
To execute the operation, in the tAxis field specify moniker of Y axis. 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 applied settings.
Below is the example of resetting chart's Y axis settings. The request contains axis moniker. The response contains the settings to be applied after resetting the previously determined settings.
{
"ResetChartAxisY" :
{
"tAxis" :
{
"id" : "S1!M!S!P1!Sheets!1!Objects!PrxChart3!AxisY"
}
}
}
{
"ResetChartAxisYResult" :
{
"p" : "Auto",
"cv" : "1",
"ct" : "",
"cf" :
{
"family" : "Tahoma",
"style" :
{
"it" : "Regular"
},
"size" :
{
"width" : "-1",
"height" : "8",
"units" : "Pt"
}
},
"cfc" : "#918F8D",
"lv" : "1",
"lf" :
{
"family" : "Tahoma",
"style" :
{
"it" : "Regular"
},
"size" :
{
"width" : "-1",
"height" : "8",
"units" : "Pt"
}
},
"lfc" : "#918F8D",
"la" : "0",
"gl" :
{
"enabled" : "1",
"clr" : "#E0E0E0",
"s" : "0",
"w" : "0.5"
},
"tl" :
{
"enabled" : "0",
"clr" : "#000000",
"s" : "0",
"w" : "0.25"
},
"al" :
{
"enabled" : "0",
"clr" : "#E0E0E0",
"s" : "0",
"w" : "0.25"
},
"max" : "1.5",
"amax" : "1",
"min" : "-1.5",
"amin" : "1",
"nf" : "",
"du" : "0",
"stm" : "1",
"tc" : "5"
}
}
public static ChartAxis ResetAxisYSettings(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tReset = new ResetChartAxisY()
{
tAxis = new AxisId()
{
id = moniker + "!AxisY"
}
};
// Reset Y axis settings
var result = somClient.ResetChartAxisY(tReset);
return result;
}
See also: