Settings of a report chart are stored in the chart property of the settings element.
NOTE. This specification contains only the settings, which are used on the mobile device.
| Property | Description | Available values |
| chartType | Chart type. | Property value is an element of the ChartType enumeration. |
| series | Data series array. | Values is an array of elements containing properties:
0 - graph. 1 - bar chart. 2 - area chart.
true - secondary axis is used. false - secondary axis is not used.
DefaultStyle. Contains the CustomFormat property that sets custom display data format.
|
| ChartAreaDecoration | Chart plot area settings. | Value is an element with the following properties:
Color. Array of colors for chart fill. Each element contains settings: type - color type: MainColor - main color, FirstColor - gradient start color, LastColor - gradient end color. _innerText - color code. BackgroundType. Fill type: 0 – no fill, 1 – solid fill, 2 – gradient, 3 – picture, pattern, 4 – glamour fill. GradientAngle. Gradient angle. PictureDrawStyle;
|
| ChartLegend | Chart legend settings. | Value is an element with the following properties:
Left. To the left edge. Right. To the right edge. Top. To the top. Bottom. To the bottom. |
| Axes | Chart axes settings | Value is an array of elements with the properties:
AT_AXISX. X axis. AT_AXISY. Y axis. AT_AXISYSEC. Secondary axis.
|
Below is an example of setting up an express report chart. The example contains settings applied in the mobile application:
<key>chart</key><key>chartType</key><integer>14</integer><key>series</key><array> <dict> … <key>index</key> <integer>0</integer> <key>atSecondaryAxis</key> <string>false</string> <key>fillColor</key>//color <string>#82BAB6</string> </dict></array><key>ChartAreaDecoration</key>/<dict> <key>Background</key> <dict> <key>Color</key> <array> <dict> <key>type</key> <string>MainColor</string> <key>_innerText</key> <string>#ffffffff</string> </dict> <dict> <key>type</key> <string>FirstColor</string> <key>_innerText</key> <string>#ffffffff</string> </dict> <dict> <key>type</key> <string>LastColor</string> <key>_innerText</key> <string>#ff808080</string> </dict> </array> <key>BackgroundType</key> <integer>1</integer> <key>GradientAngle</key> <integer>0</integer> </dict></dict><key>Legend</key><dict> <key>ChartLegend</key> <dict> <key>ColumnsCount</key> <key>Alignment</key> </dict></dict></dict><key>Axes</key><array> <dict> <key>Type</key> <string>AT_AXISY</string> <key>Visible</key> <integer>1</integer> <key>AxisCaption</key> <dict> <key>Caption</key> <dict>…</dict> </dict> <key>DisplayUnitCaption</key> <dict> <key>Caption</key> <dict>…</dict> </dict> </dict> <dict> <key>Type</key> <string>AT_AXISX</string> <key>Visible</key> <integer>1</integer> <key>AxisCaption</key> <dict> <key>Caption</key> <dict>…</dict> </dict> <key>DisplayUnitCaption</key> <dict> <key>Caption</key> <dict>…</dict> </dict> </dict></array>
See also: