Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxChartAxisBase<T>.TickInterval Property

Specifies the interval between major ticks. Does not apply to discrete axes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public ChartAxisInterval TickInterval { get; set; }

#Property Value

Type Description
ChartAxisInterval

An enumeration value.

#Remarks

The Chart calculates intervals between ticks automatically based on the series values. Use the TickInterval and MinorTickInterval properties to set the custom intervals for major and minor ticks respectively.

The following example sets the tick interval to 7 on the value axis and to 12 hours on the argument axis:

Razor
<DxChart Data="@forecasts">
    <DxChartLineSeries ArgumentField="@((WeatherForecast i) => i.Date)"
                       ValueField="@((WeatherForecast i) => i.TemperatureF)"
                       Name="Temperature, F" />
    <DxChartValueAxis TickInterval="7" />
    <DxChartArgumentAxis TickInterval="ChartAxisInterval.Hours(12)" />
</DxChart>

Tick Interval is Specified

See Also