Skip to main content

ChartAxisTickInterval.Days(Int32) Method

Sets the interval between two ticks to the specified number of days.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public static ChartAxisTickInterval Days(
    int interval
)

Parameters

Name Type Description
interval Int32

The number of days.

Returns

Type Description
ChartAxisTickInterval

A ChartAxisTickInterval structure object.

Remarks

The Chart automatically calculates the interval between major and minor ticks based on the axis values. Use the TickInterval and MinorTickInterval properties to specify custom intervals.

The following example sets the tick interval to three days for major ticks and one day for minor ticks:

<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 TickInterval="ChartAxisTickInterval.Days(3)" 
                         MinorTickInterval="ChartAxisTickInterval.Day">
        <DxChartAxisMinorTick Visible="true" />
    </DxChartArgumentAxis>
</DxChart>

Tick Interval in Days

See Also