Skip to main content
All docs
V25.1
  • ChartAxisInterval.Month Property

    Returns an interval of one month.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public static ChartAxisInterval Month { get; }

    Property Value

    Type Description
    ChartAxisInterval

    A ChartAxisInterval 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 2 months for major ticks and one month 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="ChartAxisInterval.Months(2)" 
                             MinorTickInterval="ChartAxisInterval.Month">
            <DxChartAxisMinorTick Visible="true" />
        </DxChartArgumentAxis>
    </DxChart>
    

    Tick Interval in Months

    See Also