GetChartSeries

Syntax

ChartSeries GetChartSeries(ChartId tChart)

Parameters

tChart. Chart moniker.

Description

The GetChartSeries operation gets chart series settings.

Comments

To execute the operation, in the tChart field determine a 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 the chart series settings.

Example

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

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetChartSeriesResult 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">
<series xmlns="">
<it>
  <def>1</def>
  <type>8</type>
<bd>
  <enabled>0</enabled>
  </bd>
  <imask>41680900</imask>
  </it>
<it>
  <type>8</type>
  <name />
  <dil>1</dil>
  <asa>0</asa>
<bd>
  <enabled>1</enabled>
  <clr>#488DB1</clr>
  <s>0</s>
  <w>0.25</w>
  </bd>
  <imask>167903231</imask>
  </it>
<it>
  <type>8</type>
  <name />
  <dil>1</dil>
  <asa>0</asa>
<bd>
  <enabled>1</enabled>
  <clr>#4AA86B</clr>
  <s>0</s>
  <w>0.25</w>
  </bd>
  <imask>167903231</imask>
  </it>
<it>
  <type>8</type>
  <name />
  <dil>1</dil>
  <asa>0</asa>
<bd>
  <enabled>1</enabled>
  <clr>#C3A83D</clr>
  <s>0</s>
  <w>0.25</w>
  </bd>
  <imask>167903231</imask>
  </it>
<it>
  <type>8</type>
  <name />
  <dil>1</dil>
  <asa>0</asa>
<bd>
  <enabled>1</enabled>
  <clr>#D45B5B</clr>
  <s>0</s>
  <w>0.25</w>
  </bd>
  <imask>167903231</imask>
  </it>
  </series>
  </GetChartSeriesResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetChartSeries" :
{
"tChart" :
{
"id" : "S2!M!S!P1!Sheets!1!Objects!PrxChart1"
}
}
}

JSON response:

{
"GetChartSeriesResult" :
{
"series" :
{
"it" :
[
{
"def" : "1",
"type" : "8",
"bd" :
{
"enabled" : "0"
},
"imask" : "41680900"
},
{
"type" : "8",
"name" : "",
"dil" : "1",
"asa" : "0",
"bd" :
{
"enabled" : "1",
"clr" : "#488DB1",
"s" : "0",
"w" : "0.25"
},
"imask" : "167903231"
},
{
"type" : "8",
"name" : "",
"dil" : "1",
"asa" : "0",
"bd" :
{
"enabled" : "1",
"clr" : "#4AA86B",
"s" : "0",
"w" : "0.25"
},
"imask" : "167903231"
},
{
"type" : "8",
"name" : "",
"dil" : "1",
"asa" : "0",
"bd" :
{
"enabled" : "1",
"clr" : "#C3A83D",
"s" : "0",
"w" : "0.25"
},
"imask" : "167903231"
},
{
"type" : "8",
"name" : "",
"dil" : "1",
"asa" : "0",
"bd" :
{
"enabled" : "1",
"clr" : "#D45B5B",
"s" : "0",
"w" : "0.25"
},
"imask" : "167903231"
}
]
}
}
}
public static ChartSeries GetChartSeries(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartSeries()
{
tChart = new ChartId() { id = moniker }
};
// Get chart series settings
var result = somClient.GetChartSeries(tGet);
return result;
}

See also:

Chart