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

DxChartConstantLineLabel.Position Property

Specifies whether to show a constant line label inside or outside the chart plot area.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public RelativePosition Position { get; set; }

#Property Value

Type Description
RelativePosition

A RelativePosition enumeration value.

Available values:

Name Description
Inside

An element is displayed inside the component.

Outside

An element is displayed outside the component.

#Remarks

Use the following code snippet to adjust a constant line label’s position:

Razor
<DxChartValueAxis>
    <DxChartConstantLine Value="100">
        <DxChartConstantLineLabel HorizontalAlignment="HorizontalAlignment.Center"
                                  Position="RelativePosition.Inside" />
    </DxChartConstantLine>
</DxChartValueAxis>
See Also