corelibraries-devexpress-dot-xtracharts-dot-axisbase-79c6b480.md
Stores the options that define the behavior of a scale when its type is numeric.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public NumericScaleOptions NumericScaleOptions { get; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property NumericScaleOptions As NumericScaleOptions
| Type | Description |
|---|---|
| NumericScaleOptions |
The numeric axis scale options.
|
This example shows how to use NumericScaleOptions to reduce the number of visible series points.
The following code configures the axis scale settings to resemble to the chart appearance above:
NumericScaleOptions numericScaleOptions = ((XYDiagram)chartControl.Diagram).AxisX.NumericScaleOptions;
numericScaleOptions.ScaleMode = ScaleMode.Manual;
numericScaleOptions.MeasureUnit = NumericMeasureUnit.Hundreds;
numericScaleOptions.GridOffset = 5;
numericScaleOptions.AggregateFunction = AggregateFunction.Average;
numericScaleOptions.GridAlignment = NumericGridAlignment.Thousands;
numericScaleOptions.GridSpacing = 1;
Dim numericScaleOptions As NumericScaleOptions = CType(chartControl.Diagram,XYDiagram).AxisX.NumericScaleOptions
numericScaleOptions.ScaleMode = ScaleMode.Manual
numericScaleOptions.MeasureUnit = NumericMeasureUnit.Hundreds
numericScaleOptions.GridOffset = 5
numericScaleOptions.AggregateFunction = AggregateFunction.Average
numericScaleOptions.GridAlignment = NumericGridAlignment.Thousands
numericScaleOptions.GridSpacing = 1
The following table lists the API members the code above uses:
| Member | Description |
|---|---|
AxisBase.NumericScaleOptions | Stores the options that define the behavior of a scale when its type is numeric. |
| ScaleOptionsBase.ScaleMode | Gets or sets the scale mode for an axis. |
| ScaleMode | Lists the values that specify the scale mode for an axis. |
| NumericScaleOptions.MeasureUnit | Gets or sets the detail level for numeric values. |
| NumericMeasureUnit | Lists the values that specify the detail level for numeric values. |
| ScaleGridOptionsBase.GridOffset | Gets or sets the offset of grid lines and major tickmarks. |
| ScaleGridOptionsBase.AggregateFunction | Gets or sets the value indicating the aggregate function that should be used to relieve data. |
| AggregateFunction | Lists the values that specify the aggregate function used for an axis. |
| NumericScaleOptions.GridAlignment | Gets or sets the numeric measure unit to which the beginning of an axis’ gridlines and labels should be aligned. |
| NumericGridAlignment | Lists the values that specify the numeric-time measurement unit, to which the beginning of a diagram’s gridlines and labels should be aligned. |
| ScaleGridOptionsBase.GridSpacing | Gets or sets the interval between grid lines and major tickmarks. |
See Also