bool SetChartHint(ChartHintId tHint, ChartHint tArg)
tHint. Moniker for working with chart tooltips.
tArg. Tooltip settings that should be applied.
The SetChartHint operation changes chart tooltip settings.
To execute the operation, in the tHint field specify moniker for working with chart tooltips, and in the tArg field specify the 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'!Hint'.
The operation results in the logical True if the settings were applied successfully.
Below is the example of changing chart tooltip settings. The request contains moniker for working with tooltips and settings to be applied. The response contains whether changes were applied successfully.
{
"SetChartHint" :
{
"tHint" :
{
"id" : "EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Hint"
},
"tArg" :
{
"tf" : "%XValue",
"a" : "Center",
"ic" : "true",
"p" :
{
"clr" : "#000000",
"s" : "0",
"enabled" : "true"
}
}
}
}
{
"SetChartHintResult" : "1"
}
public static bool SetChartHint(string chartMoniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetChartHint()
{
tHint = new ChartHintId() { id = chartMoniker + "!Hint" },
tArg = new ChartHint()
{
tf = "%XValue",
a = ChartHorizontalAlignment.Center,
ic = true,
p = new ChartLine()
{
enabled = true,
s = 0,
clr = "#000000" //Black
}
}
};
// Change chart tooltip settings
var result = somClient.SetChartHint(tSet);
return result;
}
See also: