Skip to main content

DxChartAxis<T>.DivisionFactor Property

Specifies the minimum distance between two neighboring major ticks.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public int DivisionFactor { get; set; }

Property Value

Type Description
Int32

The minimum distance in pixels.

Remarks

For axes that display numbers (Continuous and Logarithmic types), the distance between major ticks depends on two properties: DivisionFactor and TickInterval. The Chart ignores the TickInterval property if the tick interval is less than the DivisionFactor value.

Use the DivisionFactor property only if you need to set the distance between ticks when you do not know axis values. Otherwise, use the TickInterval property.

The DivisionFactor property has different default values for the argument and value axes:

Axis Default Value
Argument 70
Value 40

The following code snippet shows how to specify the DivisionFactor property:

<DxChart Data="@forecasts">
    <DxChartLineSeries ArgumentField="@((WeatherForecast i) => i.Date)"
                       ValueField="@((WeatherForecast i) => i.TemperatureC)"
                       Name="Temperature, C" />
    <DxChartLineSeries ArgumentField="@((WeatherForecast i) => i.Date)"
                       ValueField="@((WeatherForecast i) => i.TemperatureF)"
                       Name="Temperature, F" />
    <DxChartValueAxis DivisionFactor="15" />
</DxChart>

Division Factor is 15 Pixels

See Also