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

DxSankeyLabelSettings.Overlap Property

Specifies how the component displays overlapped labels.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(SankeyLabelOverlap.Ellipsis)]
[Parameter]
public SankeyLabelOverlap Overlap { get; set; }

#Property Value

Type Default Description
SankeyLabelOverlap Ellipsis

An enumeration value.

Available values:

Name Description
Ellipsis

Truncates overlapped labels with ellipsis.

Hide

Hides overlapped labels.

None

Leaves labels overlapped.

#Remarks

Use the 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