Skip to main content
All docs
V25.1
  • DxSankeyLabelSettings.Overlap Property

    Specifies how the component displays overlapped labels.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [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