Back to Devexpress

DxChartAxisTick.Length Property

blazor-devexpress-dot-blazor-dot-dxchartaxistick-5d0ceb90.md

latest1.4 KB
Original Source

DxChartAxisTick.Length Property

Specifies the tick length.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Int327

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>

See Also

DxChartAxisTick Class

DxChartAxisTick Members

DevExpress.Blazor Namespace