Chart Settings

Report chart settings are stored in the chart property of the settings element.

NOTE. This specification contains only the settings, which are used on a 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. It determines whether secondary axis is used on building a chart:

    • true - secondary axis is used.

    • false - secondary axis is not used.

  • axes. It contains axes settings: axisX, axisY.

  • axisX/axisY. It contains axes settings:

    • DefaultStyle. It contains the CustomFormat property that sets custom data display format.

  • UseSplineSmoothing. It determines whether series smoothing is used.

  • textVisible. It 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 elements are located. 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. It indicates whether axis is displayed: 0 - not displayed; 1 - displayed.

  • AxisCaption. Axis caption parameters.

  • DisplayUnitCaption. Displayed axis unit caption 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