Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxChartAxisTick.Length Property

Specifies the tick length.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(7)]
[Parameter]
public int Length { get; set; }

#Property Value

Type Default Description
Int32 7

The length of ticks in pixels.

#Remarks

Use the Length property to set the tick length. You can also use the Shift property to align ticks relative to the axis line.

The following example sets tick length to 10 pixels:

Razor
<DxChart Data="@forecasts">
    <DxChartLineSeries ArgumentField="@((WeatherForecast i) => i.Date)"
                       ValueField="@((WeatherForecast i) => i.TemperatureF)"
                       Name="Temperature, F" />
    <DxChartValueAxis>
        <DxChartAxisTick Shift="6" Length="10" />
    </DxChartValueAxis>
</DxChart>

The tick is stretched

See Also