GetChartSettings

Syntax

ChartSettings GetChartSettings(ChartId tChart)

Parameters

tChart. Chart moniker.

Description

The GetChartSettings operation gets chart settings.

Comments

To execute the operation, determine in the tChart field the chart moniker. The chart moniker is based on moniker of the repository object, with the chart of which the user is working, following the rules:

The operation results in getting chart settings.

Example

Below is the example of getting settings of the chart created in regular report. The request contains chart moniker. The response contains 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">
<GetChartSettings xmlns="http://www.fsight.ru/PP.SOM.Som">
<tChart xmlns="">
  <id>S1!M!S!P1!Sheets!1!Objects!PrxChart1</id>
  </tChart>
  </GetChartSettings>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetChartSettingsResult 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">
  <type xmlns="">1</type>
  <view3d xmlns="">0</view3d>
  <uzs xmlns="">0</uzs>
<bg xmlns="">
  <type>0</type>
  </bg>
<bd xmlns="">
  <enabled>0</enabled>
  </bd>
  <ornt xmlns="">0</ornt>
  <accum xmlns="">0</accum>
  <inter xmlns="">Selection</inter>
  <zm xmlns="">None</zm>
  </GetChartSettingsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetChartSettings" :
{
"tChart" :
{
"id" : "S1!M!S!P1!Sheets!1!Objects!PrxChart1"
}
}
}

JSON response:

{
"GetChartSettingsResult" :
{
"type" : "1",
"view3d" : "0",
"uzs" : "0",
"bg" :
{
"type" : "0"
},
"bd" :
{
"enabled" : "0"
},
"ornt" : "0",
"accum" : "0",
"inter" : "Selection",
"zm" : "None"
}
}
public static ChartSettings GetChartSettings(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartSettings()
{
tChart = new ChartId()
{
id = moniker
}
};
// Get settings
var result = somClient.GetChartSettings(tGet);
return result;
}

See also:

Chart