All docs
V19.2
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 Class

Contains scale settings for an axis when its scale mode is automatic.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v19.2.dll

Declaration

public class AutomaticTimeSpanScaleOptions :
    TimeSpanAggregationScaleOptionsBase
Public Class AutomaticTimeSpanScaleOptions
    Inherits TimeSpanAggregationScaleOptionsBase

Remarks

The automatic options allow the Chart Control to automatically define the optimal measurement unit for an axis based on the input data, the chart size, and the zoom level.

You can use an AutomaticTimeSpanScaleOptions object to specify the AxisX2D.TimeSpanScaleOptions, AxisX3D.TimeSpanScaleOptions, and RadarAxisX2D.TimeSpanScaleOptions properties.

The AggregateFunction property allows you to define how to summarize data on each interval defined by a measurement unit.

If predefined aggregate functions do not meet your requirements, define CustomAggregateFunction.

To learn more, see Data Aggregation.

You can change an algorithm used to calculate a measurement unit. To do this, use the AutomaticMeasureUnitsCalculator property.

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