Back to Devexpress

AxisX2D.NumericScaleOptions Property

wpf-devexpress-dot-xpf-dot-charts-dot-axisx2d-61c3841b.md

latest2.7 KB
Original Source

AxisX2D.NumericScaleOptions Property

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

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public NumericScaleOptionsBase NumericScaleOptions { get; set; }
vb
Public Property NumericScaleOptions As NumericScaleOptionsBase

Property Value

TypeDescription
NumericScaleOptionsBase

A NumericScaleOptionsBase object.

|

Remarks

Use the NumericScaleOptions property to access the options of numeric argument axis (X-axis) when its mode is manual (ManualNumericScaleOptions), automatic (AutomaticNumericScaleOptions) or continuous (ContinuousNumericScaleOptions).

Example

This code snippet shows how to access the automatic numeric 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.

xaml
<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.NumericScaleOptions>
                            <dxc:AutomaticNumericScaleOptions AggregateFunction="Maximum" />
                        </dxc:AxisX2D.NumericScaleOptions>
                    </dxc:AxisX2D>
                </dxc:XYDiagram2D.AxisX>              
            </dxc:XYDiagram2D>          
        </dxc:ChartControl>
    </Grid>
</Window>

See Also

AxisX2D Class

AxisX2D Members

DevExpress.Xpf.Charts Namespace