All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

AutomaticTimeSpanScaleOptions.AggregateFunction Property

Gets or sets the function that is used to aggregate time-span axis data when one of the AxisX2D.TimeSpanScaleOptions, AxisX3D.TimeSpanScaleOptions or RadarAxisX2D.TimeSpanScaleOptions properties is set to AutomaticTimeSpanScaleOptions.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v20.1.dll

Declaration

public AggregateFunction AggregateFunction { get; set; }
Public Property AggregateFunction As AggregateFunction

Property Value

Type Description
AggregateFunction

An aggregate function that applies to series points.

Remarks

When the AggregateFunction property is not specified, the Chart uses the Average function:

When the AggregateFunction is set to None, series points are grouped by their arguments and an arithmetic operation is not applied to data:

Examples

This code snippet shows how to access the automatic date time scale options for the x-axis scale and specify the aggregate function.

<dxc:ChartControl>
    <dxc:XYDiagram2D>
        <!--. . .-->
        <dxc:XYDiagram2D.AxisX>
            <dxc:AxisX2D>
                <dxc:AxisX2D.TimeSpanScaleOptions>
                    <dxc:AutomaticTimeSpanScaleOptions AggregateFunction="Sum"/>
                </dxc:AxisX2D.TimeSpanScaleOptions>
            </dxc:AxisX2D>
        </dxc:XYDiagram2D.AxisX>
    </dxc:XYDiagram2D>
</dxc:ChartControl>
See Also