AxisX2D.DateTimeScaleOptions Property

Provides access to the options that define the behavior of a date-time X-scale when its mode is manual, automatic or continuous.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public DateTimeScaleOptionsBase DateTimeScaleOptions { get; set; }
Public Property DateTimeScaleOptions As DateTimeScaleOptionsBase

Property Value

Type Description
DateTimeScaleOptionsBase

A DateTimeScaleOptionsBase object.

Remarks

Use the DateTimeScaleOptions property to access the options of the date-time argument axis (X-axis) when its mode is manual (ManualDateTimeScaleOptions), automatic (AutomaticDateTimeScaleOptions) or continuous (ContinuousDateTimeScaleOptions).

Examples

This code snippet shows how to access the automatic date time scale options for the X-axis scale and specify the aggregate function. The automatic options allow the chart control to automatically define the optimal unit of measure for an axis based on the input data, and the zoom level.

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts" 
        x:Class="WpfApplication19.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <dxc:ChartControl>
            <dxc:XYDiagram2D>
                <dxc:XYDiagram2D.AxisX>
                    <dxc:AxisX2D>
                        <dxc:AxisX2D.DateTimeScaleOptions>
                            <dxc:AutomaticDateTimeScaleOptions  AggregateFunction="Sum"/>
                        </dxc:AxisX2D.DateTimeScaleOptions>
                    </dxc:AxisX2D>
                </dxc:XYDiagram2D.AxisX>
            </dxc:XYDiagram2D>
        </dxc:ChartControl>
    </Grid>
</Window>
See Also