Skip to main content
A newer version of this page is available. .

DxChartAxis<TModel>.TickInterval Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public ChartAxisTickInterval TickInterval { get; set; }

Property Value

Type Description
ChartAxisTickInterval

A ChartAxisTickInterval 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:

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

Tick Interval is Specified

See Also