Skip to main content

DxChartConstantLineLabel.Position Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[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 code below to adjust a constant line label’s position:

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