Back to Devexpress

LabelOverlap Enum

blazor-devexpress-dot-blazor-77aaa1d5.md

latest1.6 KB
Original Source

LabelOverlap Enum

Lists values that specify how the component resolves label overlap.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public enum LabelOverlap

Members

NameDescription
ShowAll

Shows all labels.

| | Hide |

Hides overlapping labels except the label that points to the smallest value.

| | Shift |

Shifts overlapping labels.

|

The following properties accept/return LabelOverlap values:

Remarks

The following code snippet uses a drop-down menu to choose how to display bar labels in DxBarGauge:

razor
<DxBarGauge Width="100%"
            Height="500px"
            StartValue="-5"
            EndValue="5"
            BaseValue="0"
            LabelOverlap="@CurrentOverlapMode"
            Values="@Values">
    <DxBarGaugeLabelSettings>
        <DxTextFormatSettings LdmlString="@LabelFormat" />
    </DxBarGaugeLabelSettings>
    @* ... *@
</DxBarGauge>

@code {
    string LabelFormat = "##.## mm;-##.## mm";
    LabelOverlap CurrentOverlapMode = LabelOverlap.Hide;
    double[] Values = new double[] { -2.13, 1.48, -3.09, 3.52, 4.9, 1.5 };
    // ...
}

See Also

DevExpress.Blazor Namespace