Skip to main content

DxChartLegend.HorizontalAlignment Property

Along with the VerticalAlignment property, specifies the legend’s position.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

Type Description
HorizontalAlignment

A HorizontalAlignment enumeration value.

Available values:

Name Description
Center

Center alignment.

Left

Left alignment.

Right

Right alignment.

Remarks

<DxChart Data="@SalesData">
    @* ... *@
    <DxChartLegend HorizontalAlignment="HorizontalAlignment.Left" VerticalAlignment="VerticalEdge.Top">
        <DxChartTitle Text="Legend" />
    </DxChartLegend>
</DxChart>

Run Demo: Charts - Legend Customization

See Also