ManualNumericScaleOptions Class

Contains settings for a numeric axis data when its scale mode is manual.

Namespace: DevExpress.Xpf.Charts

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


public class ManualNumericScaleOptions :


An object of the ManualNumericScaleOptions type is returned by the AxisX2D.NumericScaleOptions, AxisX3D.NumericScaleOptions, and CircularAxisX2D.NumericScaleOptions properties.

In this mode, the ManualNumericScaleOptions.GridAlignment and ManualNumericScaleOptions.MeasureUnit properties are available. These properties allow you to define the output format of date-time values shown by the axis labels.

For instance, you can use the ManualNumericScaleOptions.MeasureUnit property to determine the detail level for date-time values (e.g., 10, 100, 1000, etc.).

Data for each interval on the X-axis is aggregated using the function specified by the ManualNumericScaleOptions.AggregateFunction property. Although by default, aggregate function is set to Average, it can be changed to Minimum, Maximum, Sum, etc.

To learn more, see Data Aggregation.


This example demonstrates how to use the manual numeric scale options of the X-axis.

When the AxisX2D.NumericScaleOptions property is set to ManualNumericScaleOptions, you can manually define the ManualNumericScaleOptions.GridAlignment, ManualNumericScaleOptions.MeasureUnit and ManualNumericScaleOptions.AggregateFunction properties.

To use the automatic numeric scale options, set the AxisX2D.NumericScaleOptions property to AutomaticNumericScaleOptions and choose the appropriate AutomaticNumericScaleOptions.AggregateFunction.

To prevent the axis scale from being divided into intervals (and thus prevent chart data from being aggregated), set the ManualNumericScaleOptions.AggregateFunction or AutomaticNumericScaleOptions.AggregateFunction property to None.

View Example

        Title="MainWindow" Height="350" Width="525">
        <dxc:ChartControl >
                    <dxc:AxisX2D GridLinesVisible="True">
                            <dxc:ManualNumericScaleOptions MeasureUnit="100" GridAlignment="1000" 
                                                           AggregateFunction="Maximum" GridSpacing="2"/>
                <dxc:LineSeries2D DataSource="{Binding Path=Series}" 
                                  ArgumentDataMember="Argument" ValueDataMember="Value"/>
See Also