Skip to main content
All docs
V24.2

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

SankeyLabelOverlap Enum

Lists values that specify how DxSankey resolves label overlapping.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum SankeyLabelOverlap

#Members

Name Description
Ellipsis

Truncates overlapped labels with ellipsis.

Hide

Hides overlapped labels.

None

Leaves labels overlapped.

#Related API Members

The following properties accept/return SankeyLabelOverlap values:

#Remarks

Use the DxSankeyLabelSettings.Overlap property to specify how the <DxSankey> component resolves label overlapping.

DxSankey - Label overlap

#Example

The following example hides overlapped labels:

<DxSankey Data="@Data"
          Width="100%"
          Height="440px"
          SourceFieldName="Source"
          TargetFieldName="Target"
          WeightFieldName="Weight">
    <DxSankeyNodeSettings Width="8" Spacing="30" />
    <DxSankeyLabelSettings Overlap="SankeyLabelOverlap.Hide">
        <DxFontSettings Size="28" Opacity="0.6"/>
    </DxSankeyLabelSettings>
    <DxSankeyLinkSettings ColorMode="SankeyLinkColorMode.Gradient" />
    <DxTitleSettings Text="Commodity Turnover" />
</DxSankey>

@code {
    IEnumerable<SankeyDataPoint> Data = Enumerable.Empty<SankeyDataPoint>();
    protected override void OnInitialized() {
        Data = GenerateData();
    }
}
See Also