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

ChartAxisTickInterval Struct

Contains options to specify tick intervals.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public struct ChartAxisTickInterval :
    IEquatable<ChartAxisTickInterval>

Remarks

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

The following example sets the minor tick interval to 2 on the value axis and to 4 hours on the argument axis:

<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" />
    <DxChartArgumentAxis MinorTickInterval="ChartAxisTickInterval.Hours(4)">
        <DxChartAxisMinorTick Visible="true" />
    </DxChartArgumentAxis>
    <DxChartValueAxis MinorTickInterval="2">
        <DxChartAxisMinorTick Visible="true" />
    </DxChartValueAxis>
</DxChart>

Minor Tick Interval Is Set

See Also