GetChartHint

Syntax

ChartHint GetChartHint(ChartHintId tHint)

Parameters

tHint. Moniker for working with chart tooltips.

Description

The GetChartHint operation gets chart tooltip settings.

Comments

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.

Example

Below is the example of getting chart tooltip settings. The request contains moniker for working with tooltips. The response contains the obtained settings.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetChartHint xmlns="http://www.fsight.ru/PP.SOM.Som">
<tHint xmlns="">
  <id>EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Hint</id>
  </tHint>
  </GetChartHint>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetChartHintResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <tf xmlns="">%XValue</tf>
  <a xmlns="">Center</a>
<fn xmlns="">
  <family>Tahoma</family>
<style>
  <it>Regular</it>
  </style>
<size>
  <width>-1</width>
  <height>8</height>
  <units>Pt</units>
  </size>
  </fn>
  <fc xmlns="">#918F8D</fc>
<bg xmlns="">
  <type>1</type>
<sfill>
  <clr>#FFFFFF</clr>
  <tp>0</tp>
  </sfill>
  </bg>
  <ic xmlns="">1</ic>
<p xmlns="">
  <clr>#000000</clr>
  <s>0</s>
  <w>1</w>
  <enabled>1</enabled>
  </p>
  </GetChartHintResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetChartHint" :
{
"tHint" :
{
"id" : "EDKKJPHJEHILFOAEPIMEEFNEPLBBPMIENIOCOOKNODOIOCGE!M!S!PPDJOMGIJEHILFOAEKDIEBFPLEKLKDGJEDJIIBCHBAEAKDPIA!Sheets!1!Objects!PrxChart1!Hint"
}
}
}

JSON response:

{
"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:

Chart