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

ChartAxisTickInterval.Seconds(Int32) Method

Returns the interval between two ticks of the specified number of seconds.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public static ChartAxisTickInterval Seconds(
    int interval
)

Parameters

Name Type Description
interval Int32

The number of seconds.

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 5 seconds for major ticks and one second 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.Seconds(5)" 
                         MinorTickInterval="ChartAxisTickInterval.Second">
        <DxChartAxisMinorTick Visible="true" />
    </DxChartArgumentAxis>
    <DxChartLegend Visible="false" />
</DxChart>

Tick Interval in Seconds

See Also