Back to Devexpress

DxChartAxisBase<T>.DivisionFactor Property

blazor-devexpress-dot-blazor-dot-dxchartaxisbase-1-89cd84fd.md

latest2.2 KB
Original Source

DxChartAxisBase<T>.DivisionFactor Property

Specifies the minimum distance between two neighboring major ticks.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
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:

AxisDefault Value
Argument70
Value40

The following code snippet specifies the DivisionFactor property:

razor
<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>

See Also

DxChartAxisBase<T> Class

DxChartAxisBase<T> Members

DevExpress.Blazor Namespace