Chart Settings

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:
  • index. Series index.

  • type. Series type. The setting is available if the Mixed type of chart is specified in the desktop application. Series types:

0 - graph.

1 - bar chart.

2 - area chart.

  • fillColor. Chart series color.

  • atSecondaryAxis. Determines whether secondary axis is used on building a chart:

true - secondary axis is used.

false - secondary axis is not used.

  • axes. Contains axes settings: axisX, axisY.

  • axisX/axisY. Contains axes settings:

DefaultStyle. Contains the CustomFormat property that sets custom display data format.

  • UseSplineSmoothing. Determines whether series smoothing is used.

  • textVisible. Determines whether chart axis labels are displayed.

ChartAreaDecoration Chart plot area settings. Value is an element with the following properties:
  • Background. Element with fill settings. The following settings are available:

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;

  • BorderColor. Border color.

  • BorderRadius. Radius of table corners rounding (in pixels).

  • BorderThickness. Border thickness in pixels.

ChartLegend Chart legend settings.

Value is an element with the following properties:

  • ColumnsCount. The number of columns in which legend items are shown. 0 - without arrangement by columns.

  • Alignment. Elements alignment in the legend:

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:

  • Type. Axis type:

AT_AXISX. X axis.

AT_AXISY. Y axis.

AT_AXISYSEC. Secondary axis.

  • Visible. Indicates whether axis is displayed: 0 - not displayed; 1 - displayed.

  • AxisCaption. Axis title parameters.

  • DisplayUnitCaption. Displayed axis unit title parameters.

Example

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:

Report Description