ChartHint GetChartHint(ChartHintId tHint)
tHint. Moniker for working with chart tooltips.
The GetChartHint operation gets chart tooltip settings.
To execute the operation, in the tHint field specify moniker for working with chart tooltips. 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 obtained tooltip settings.
Below is the example of getting chart tooltip settings. The request contains moniker for working with tooltips. The response contains the obtained settings.
{
"GetChartHint" :
{
"tHint" :
{
"id" : "EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Hint"
}
}
}
{
"GetChartHintResult" :
{
"tf" : "%XValue",
"a" : "Center",
"fn" :
{
"family" : "Tahoma",
"style" :
{
"it" : "Regular"
},
"size" :
{
"width" : "-1",
"height" : "8",
"units" : "Pt"
}
},
"fc" : "#918F8D",
"bg" :
{
"type" : "1",
"sfill" :
{
"clr" : "#FFFFFF",
"tp" : "0"
}
},
"ic" : "1",
"p" :
{
"clr" : "#000000",
"s" : "0",
"w" : "1",
"enabled" : "1"
}
}
}
public static ChartHint GetChartHint(string chartMoniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartHint()
{
tHint = new ChartHintId() { id = chartMoniker + "!Hint" }
};
// Get chart tooltip settings
var result = somClient.GetChartHint(tGet);
return result;
}
See also: